mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update api.php
This commit is contained in:
@@ -277,7 +277,7 @@ App::init()
|
||||
/**
|
||||
* Admin User Authentication
|
||||
*/
|
||||
elseif (($project->getId() === 'console' && !$team->isEmpty()) || $mode === APP_MODE_ADMIN) {
|
||||
elseif (($project->getId() === 'console' && !$team->isEmpty() && !$user->isEmpty) || (!$user->empty() && $mode === APP_MODE_ADMIN)) {
|
||||
$teamId = $team->getId();
|
||||
$adminRoles = [];
|
||||
$memberships = $user->getAttribute('memberships', []);
|
||||
|
||||
Reference in New Issue
Block a user