mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix check
This commit is contained in:
@@ -277,7 +277,7 @@ App::init()
|
||||
/**
|
||||
* Admin User Authentication
|
||||
*/
|
||||
elseif (!$team->isEmpty()) {
|
||||
elseif (($project->getId() === 'console' && !$team->isEmpty()) || $mode === APP_MODE_ADMIN) {
|
||||
if ($user->isEmpty()) {
|
||||
throw new Exception(Exception::USER_UNAUTHORIZED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user