mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
27699aa99c
* adds permission checks to custom fields * adds permission checks to custom fieldsets * adds separate permissions for custom fieldsets * check for permissions in views * Removes custom fieldsets from permissions config * Proxy the authorization for custom fieldsets down to custom fields. This allows us to use the existing permissions in use and have more semantically correct authorization checks for custom fieldsets. * simplifies the authorization check for the custom fields overview * removes special handling of custom fieldsets in base policy I just realised that this code duplicates the logic from the custom fieldset policy. Since we are checking for the authorization of custom fields anyway, we can just use the columnName for the fields. * cleanup of unused imports |
||
---|---|---|
.. | ||
.gitkeep | ||
AccessoryPolicy.php | ||
AssetModelPolicy.php | ||
AssetPolicy.php | ||
CategoryPolicy.php | ||
CheckoutablePermissionsPolicy.php | ||
CompanyPolicy.php | ||
ComponentPolicy.php | ||
ConsumablePolicy.php | ||
CustomFieldPolicy.php | ||
CustomFieldsetPolicy.php | ||
DepartmentPolicy.php | ||
DepreciationPolicy.php | ||
LicensePolicy.php | ||
LocationPolicy.php | ||
ManufacturerPolicy.php | ||
SnipePermissionsPolicy.php | ||
StatuslabelPolicy.php | ||
SupplierPolicy.php | ||
UserPolicy.php |