mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fixing a bug with the authentification guard
This commit is contained in:
parent
ebf83d64ed
commit
25acb3188d
@ -59,7 +59,7 @@ export class AuthGuard
|
||||
else
|
||||
{
|
||||
for (let perm of permissions)
|
||||
if (!AuthGuard.defaultPermissions.includes(perm))
|
||||
if (AuthGuard.defaultPermissions?.includes(perm) === true)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user