Neuaufbau des Repositories
This commit is contained in:
@@ -32,6 +32,12 @@ class AppServiceProvider extends ServiceProvider
|
||||
// You should restrict this later!
|
||||
return true;
|
||||
});
|
||||
|
||||
Gate::define('manage-users', function (User $user) {
|
||||
// Temporarily allowing all authenticated users while testing.
|
||||
// You should restrict this later by returning $user->isAdmin();
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user