Create the Gate that goes with the permission
This commit is contained in:
parent
3b4a2b0f5b
commit
705411eb4d
1 changed files with 5 additions and 0 deletions
|
@ -146,6 +146,11 @@ class AuthServiceProvider extends ServiceProvider
|
|||
}
|
||||
});
|
||||
|
||||
Gate::define('assets.view.encrypted_custom_fields', function ($user) {
|
||||
if($user->hasAccess('assets.view.encrypted_custom_fields')){
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
// -----------------------------------------
|
||||
// Reports
|
||||
|
|
Loading…
Add table
Reference in a new issue