fix provider
This commit is contained in:
parent
48e2ce2ca4
commit
f63036454e
@ -31,8 +31,8 @@ public function boot(): void
|
||||
*/
|
||||
protected function gate(): void
|
||||
{
|
||||
$root_user = User::find(0);
|
||||
Gate::define('viewHorizon', function ($user) use ($root_user) {
|
||||
Gate::define('viewHorizon', function ($user) {
|
||||
$root_user = User::find(0);
|
||||
return in_array($user->email, [
|
||||
$root_user->email
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user