fix provider
This commit is contained in:
parent
48e2ce2ca4
commit
f63036454e
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue