Commit c9856128 by Bayu Hendra Winata

bypass user authorization

parent 91769ca1
...@@ -25,6 +25,11 @@ class AuthServiceProvider extends ServiceProvider ...@@ -25,6 +25,11 @@ class AuthServiceProvider extends ServiceProvider
{ {
$this->registerPolicies(); $this->registerPolicies();
// // Assume first registered user was superadmin
Gate::before(function($user){
if ($user->getKey() == 1) {
return true;
}
});
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment