diff --git a/docs/configs/settings.md b/docs/configs/settings.md index 81d2e832..b4758eb3 100644 --- a/docs/configs/settings.md +++ b/docs/configs/settings.md @@ -506,7 +506,7 @@ identity: userHeader: "X-user-header" ``` -Identity based visibility can be configured on the service, bookmark, and widget level using the `allowUsers` and `allowGroups` list. The default is to allow all users and groups. +Identity based visibility can be configured on the service, bookmark, and widget level using the `allowUsers` and `allowGroups` list. The default is to allow all users and groups. ```yaml - Example Servie: diff --git a/src/utils/config/api-response.js b/src/utils/config/api-response.js index ef8f2b9f..9590a182 100644 --- a/src/utils/config/api-response.js +++ b/src/utils/config/api-response.js @@ -25,7 +25,7 @@ function compareServices(service1, service2) { return service1.name.localeCompare(service2.name); } -export async function bookmarksResponse(perms, idGroups) { +export async function bookmarksResponse(perms, idGroups) { checkAndCopyConfig("bookmarks.yaml"); const bookmarksYaml = path.join(CONF_DIR, "bookmarks.yaml"); diff --git a/src/utils/identity/identity-helpers.js b/src/utils/identity/identity-helpers.js index 5580ced0..e50f83c5 100644 --- a/src/utils/identity/identity-helpers.js +++ b/src/utils/identity/identity-helpers.js @@ -66,4 +66,5 @@ export const filterAllowedServices = (perms, idGroups, services) => filterAllowedItems(perms, idGroups, services, "services"); export const filterAllowedBookmarks = (perms, idGroups, bookmarks) => filterAllowedItems(perms, idGroups, bookmarks, "bookmarks"); -export const filterAllowedWidgets = (perms, widgets) => widgets.filter((widget) => identityAllow(perms, widget.options)); +export const filterAllowedWidgets = (perms, widgets) => + widgets.filter((widget) => identityAllow(perms, widget.options));