Create the Gate that goes with the permission

This commit is contained in:
Ivan Nieto Vivanco 2023-07-19 19:44:59 -06:00
parent 3b4a2b0f5b
commit 705411eb4d

View file

@ -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 // Reports