Fix pre-commit issues

This commit is contained in:
Aaron Dalton 2024-08-02 09:33:15 -04:00
parent f1d072e16c
commit cecc939056
3 changed files with 4 additions and 3 deletions

View File

@ -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:

View File

@ -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");

View File

@ -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));