changes to sms packages and option to create user
This commit is contained in:
@@ -12,6 +12,7 @@ protected function isAdmin(User $user): bool
|
||||
if (app()->environment('testing')) {
|
||||
return true; // simplify for tests
|
||||
}
|
||||
|
||||
return method_exists($user, 'isAdmin') ? $user->isAdmin() : $user->id === 1; // fallback heuristic
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user