Skip to content

Commit 62a88e0

Browse files
committed
fix logical problems
1 parent 19463e8 commit 62a88e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

laravel/app/Http/Controllers/Api/UserController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ public function getEmail()
202202
private function demoForbid($id)
203203
{
204204
if (env('APP_ENV') == 'demo' && $id == User::ADMIN_ID) {
205-
return false;
205+
return true;
206206
}
207-
return true;
207+
return false;
208208
}
209209
}

0 commit comments

Comments
 (0)