mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Removed selectlist
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
2dad27eed6
commit
b30d1dce89
|
@ -180,8 +180,7 @@ class AuthServiceProvider extends ServiceProvider
|
|||
// to the logged in API user, but creating assets, licenses, etc won't work
|
||||
// if the user can't view and interact with the select lists.
|
||||
Gate::define('view.selectlists', function ($user) {
|
||||
return $user->can('view', Statuslabel::class)
|
||||
|| $user->can('view', Asset::class)
|
||||
return $user->can('view', Asset::class)
|
||||
|| $user->can('view', License::class)
|
||||
|| $user->can('view', Consumable::class)
|
||||
|| $user->can('view', Accessory::class)
|
||||
|
|
Loading…
Reference in a new issue