Fix pre-commit issues
This commit is contained in:
parent
f1d072e16c
commit
cecc939056
@ -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:
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user