fix check

This commit is contained in:
Damodar Lohani
2024-09-04 02:45:05 +00:00
parent 1752c6be44
commit 107fc1d069
+1 -1
View File
@@ -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);
}