fix provider

This commit is contained in:
Andras Bacsai 2023-05-10 09:28:53 +02:00
parent 48e2ce2ca4
commit f63036454e

View File

@ -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
]);