Skip to content

Commit

Permalink
fix authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
ramadanriz committed May 4, 2023
1 parent 7a41f72 commit 7a6c6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function boot(): void
});

Gate::define('admin', function(User $user) {
return $user->username === 'admin';
return $user->is_admin;
});
}
}

0 comments on commit 7a6c6c9

Please sign in to comment.