mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Register the consumables.files ability
This commit is contained in:
parent
1f12137245
commit
23a1b2d60a
|
@ -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?
|
// Can the user import CSVs?
|
||||||
Gate::define('import', function ($user) {
|
Gate::define('import', function ($user) {
|
||||||
if ($user->hasAccess('import')) {
|
if ($user->hasAccess('import')) {
|
||||||
|
|
Loading…
Reference in a new issue