Register the components.files ability

This commit is contained in:
Marcus Moore 2023-01-17 15:45:40 -08:00
parent dd8c6e92db
commit e23ee7540d
No known key found for this signature in database

View file

@ -114,6 +114,12 @@ class AuthServiceProvider extends ServiceProvider
} }
}); });
Gate::define('components.files', function ($user) {
if ($user->hasAccess('components.files')) {
return true;
}
});
// Can the user import CSVs? // Can the user import CSVs?
Gate::define('import', function ($user) { Gate::define('import', function ($user) {
if ($user->hasAccess('import')) { if ($user->hasAccess('import')) {