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
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
use App\Models\Post;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class PostPolicy
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user