diff --git a/frontend/src/app.js b/frontend/src/app.js index 10512106c..cb015fcd9 100644 --- a/frontend/src/app.js +++ b/frontend/src/app.js @@ -117,7 +117,7 @@ Vue.mixin({ hasPermission(resource, ...actions) { if (this.$config.values.public) return true; const role = this.$session.getUser().getRole(); - return this.acl.accessAllowedAny(role, resource, actions); + return this.acl.accessAllowedAny(role, resource, ...actions); }, }, }); diff --git a/frontend/src/common/acl.js b/frontend/src/common/acl.js index ea06bae15..5d8254ae4 100644 --- a/frontend/src/common/acl.js +++ b/frontend/src/common/acl.js @@ -95,6 +95,8 @@ export default class Acl { return act; } accessAllowedAny(role, resource, ...actions) { - return actions.some((action) => this.accessAllowed(role, resource, action)); + return actions.some((action) => { + return this.accessAllowed(role, resource, action); + }); } } diff --git a/frontend/src/component/navigation.vue b/frontend/src/component/navigation.vue index 21899cfc0..b65aca64c 100644 --- a/frontend/src/component/navigation.vue +++ b/frontend/src/component/navigation.vue @@ -181,7 +181,7 @@ - + person @@ -273,7 +273,7 @@ - + label diff --git a/frontend/src/dialog/photo/people.vue b/frontend/src/dialog/photo/people.vue index 0a31f5b00..5c5b85c8a 100644 --- a/frontend/src/dialog/photo/people.vue +++ b/frontend/src/dialog/photo/people.vue @@ -29,7 +29,7 @@ :transition="false" aspect-ratio="1" class="accent lighten-2"> - clear @@ -52,7 +52,7 @@ - {{ item.icon }}