mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix condition
This commit is contained in:
1 parent
55a5a0c7fd
commit
0ac4b031eb
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user