From 3db491a8a4eeb3e3e120c3f11f7ed3beda7633a5 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 21 Sep 2019 10:45:40 -0400 Subject: [PATCH] fix: display admin link to all admin permissions (#1052) --- client/components/common/nav-header.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/common/nav-header.vue b/client/components/common/nav-header.vue index ca05e348..180f53e1 100644 --- a/client/components/common/nav-header.vue +++ b/client/components/common/nav-header.vue @@ -265,7 +265,7 @@ export default { } }, isAdmin() { - return _.includes(this.permissions, 'manage:system') + return _.intersection(this.permissions, ['manage:system', 'write:users', 'manage:users', 'write:groups', 'manage:groups', 'manage:navigation', 'manage:theme', 'manage:api']).length > 0 } }, created() {