mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-26 13:10:55 -08:00
1a908e361e
locations->isDeletable() checks via gate::allows if a locations is deletable. This calls SnipePermissionsPolicy->before() and checks for !Company::isCurrentUserHasAccess($item). This returns false because locations don't have a company_id. Check for this and return true if the item don't have a company_id. |
||
---|---|---|
.. | ||
Recipients | ||
Traits | ||
Accessory.php | ||
Actionlog.php | ||
Asset.php | ||
AssetMaintenance.php | ||
AssetModel.php | ||
Category.php | ||
CheckoutAcceptance.php | ||
CheckoutRequest.php | ||
Company.php | ||
CompanyableChildScope.php | ||
CompanyableChildTrait.php | ||
CompanyableScope.php | ||
CompanyableTrait.php | ||
Component.php | ||
Consumable.php | ||
ConsumableAssignment.php | ||
CustomField.php | ||
CustomFieldset.php | ||
Department.php | ||
Depreciable.php | ||
Depreciation.php | ||
Group.php | ||
ICompanyableChild.php | ||
Import.php | ||
Ldap.php | ||
License.php | ||
LicenseSeat.php | ||
Location.php | ||
Loggable.php | ||
Manufacturer.php | ||
PredefinedKit.php | ||
Requestable.php | ||
Setting.php | ||
SnipeModel.php | ||
Statuslabel.php | ||
Supplier.php | ||
User.php |