Register the consumables.files ability

This commit is contained in:
Marcus Moore 2023-01-17 17:15:23 -08:00
parent 1f12137245
commit 23a1b2d60a
No known key found for this signature in database

View file

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