mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Register the components.files ability
This commit is contained in:
parent
dd8c6e92db
commit
e23ee7540d
|
@ -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')) {
|
||||||
|
|
Loading…
Reference in a new issue