mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Update api.php
This commit is contained in:
parent
107fc1d069
commit
269efbe2f0
1 changed files with 0 additions and 4 deletions
|
|
@ -278,10 +278,6 @@ App::init()
|
|||
* Admin User Authentication
|
||||
*/
|
||||
elseif (($project->getId() === 'console' && !$team->isEmpty()) || $mode === APP_MODE_ADMIN) {
|
||||
if ($user->isEmpty()) {
|
||||
throw new Exception(Exception::USER_UNAUTHORIZED);
|
||||
}
|
||||
|
||||
$teamId = $team->getId();
|
||||
$adminRoles = [];
|
||||
$memberships = $user->getAttribute('memberships', []);
|
||||
|
|
|
|||
Loading…
Reference in a new issue