mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
fix condition
This commit is contained in:
parent
55a5a0c7fd
commit
0ac4b031eb
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ class Auth
|
|||
{
|
||||
$roles = [];
|
||||
|
||||
if (self::isPrivilegedUser(Authorization::$roles) || self::isAppUser(Authorization::$roles)) {
|
||||
if (!self::isPrivilegedUser(Authorization::$roles) && !self::isAppUser(Authorization::$roles)) {
|
||||
if ($user->getId()) {
|
||||
$roles[] = 'user:'.$user->getId();
|
||||
$roles[] = 'role:'.Auth::USER_ROLE_MEMBER;
|
||||
|
|
|
|||
Loading…
Reference in a new issue