aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/users/user-role.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/users/user-role.ts')
-rw-r--r--shared/models/users/user-role.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/models/users/user-role.ts b/shared/models/users/user-role.ts
index ae3a0d983..2b08b5850 100644
--- a/shared/models/users/user-role.ts
+++ b/shared/models/users/user-role.ts
@@ -38,5 +38,5 @@ const userRoleRights: { [ id in UserRole ]: UserRight[] } = {
38export function hasUserRight (userRole: UserRole, userRight: UserRight) { 38export function hasUserRight (userRole: UserRole, userRight: UserRight) {
39 const userRights = userRoleRights[userRole] 39 const userRights = userRoleRights[userRole]
40 40
41 return userRights.indexOf(UserRight.ALL) !== -1 || userRights.indexOf(userRight) !== -1 41 return userRights.includes(UserRight.ALL) || userRights.includes(userRight)
42} 42}