modifying gates

This commit is contained in:
2018-11-10 14:55:07 -06:00
parent 4efd174c6b
commit 53ab89b133
2 changed files with 4 additions and 7 deletions
-4
View File
@@ -27,10 +27,6 @@ class AuthServiceProvider extends ServiceProvider
{
$this->registerPolicies($gate);
$gate->define('isSuperAdmin', function($user) {
return $user->hasRole('SuperAdmin');
});
$gate->define('isAdmin', function($user) {
return $user->hasRole('Admin');
});