Removed selectlist

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-02-11 11:55:24 -08:00
parent 2dad27eed6
commit b30d1dce89

View file

@ -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)