diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-28 16:03:39 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-28 16:21:34 +0100 |
commit | bdd428a6d9138d751f8cde82867022a93f1a76cc (patch) | |
tree | c2b671c3d6a34daddd20e30656f573cf59905f13 /shared/models/users | |
parent | 9d94e5d7b96332d628ed835c67c2986289ead9b2 (diff) | |
download | PeerTube-bdd428a6d9138d751f8cde82867022a93f1a76cc.tar.gz PeerTube-bdd428a6d9138d751f8cde82867022a93f1a76cc.tar.zst PeerTube-bdd428a6d9138d751f8cde82867022a93f1a76cc.zip |
Update dependencies
Diffstat (limited to 'shared/models/users')
-rw-r--r-- | shared/models/users/user-role.ts | 2 |
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[] } = { | |||
38 | export function hasUserRight (userRole: UserRole, userRight: UserRight) { | 38 | export 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 | } |