diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-27 17:27:06 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-27 17:27:06 +0200 |
commit | 757f0da370a992cf07afd20d3829b2748c76cc15 (patch) | |
tree | df093661b11be5d810e8853712774bf777946609 /client/src/app/core/auth | |
parent | 954605a804da399317ca62afa2fb9244afa11ebf (diff) | |
download | PeerTube-757f0da370a992cf07afd20d3829b2748c76cc15.tar.gz PeerTube-757f0da370a992cf07afd20d3829b2748c76cc15.tar.zst PeerTube-757f0da370a992cf07afd20d3829b2748c76cc15.zip |
Add tests to user roles
Diffstat (limited to 'client/src/app/core/auth')
-rw-r--r-- | client/src/app/core/auth/auth-user.model.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/core/auth/auth-user.model.ts b/client/src/app/core/auth/auth-user.model.ts index 085b763ec..7b6c8816f 100644 --- a/client/src/app/core/auth/auth-user.model.ts +++ b/client/src/app/core/auth/auth-user.model.ts | |||
@@ -123,7 +123,7 @@ export class AuthUser extends User { | |||
123 | this.tokens.refreshToken = refreshToken | 123 | this.tokens.refreshToken = refreshToken |
124 | } | 124 | } |
125 | 125 | ||
126 | hasRight(right: UserRight) { | 126 | hasRight (right: UserRight) { |
127 | return hasUserRight(this.role, right) | 127 | return hasUserRight(this.role, right) |
128 | } | 128 | } |
129 | 129 | ||