Fixes #2406 - added missing gate for assets.edit

This commit is contained in:
snipe 2016-08-09 16:38:43 -07:00
parent 1d3255a00b
commit 4ffea7ceaa

View file

@ -91,6 +91,12 @@ class AuthServiceProvider extends ServiceProvider
}
});
$gate->define('assets.edit', function ($user) {
if (($user->hasAccess('assets.edit')) || ($user->hasAccess('admin'))) {
return true;
}
});
// Checks for some level of management
$gate->define('assets.manage', function ($user) {
if (($user->hasAccess('assets.checkin')) || ($user->hasAccess('assets.edit')) || ($user->hasAccess('assets.delete')) || ($user->hasAccess('assets.checkout')) || ($user->hasAccess('admin'))) {