snipe-it/app/Policies
Till Deeke 27699aa99c Adds permission checks for custom fields and custom fieldsets (#5645) (#5795)
* 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
2018-07-12 18:28:20 -07:00
..
.gitkeep
AccessoryPolicy.php Add missing policies (#4330) 2017-10-27 18:01:11 -07:00
AssetModelPolicy.php Add missing policies (#4330) 2017-10-27 18:01:11 -07:00
AssetPolicy.php Applied master changes to develop 2018-02-21 15:51:04 -08:00
CategoryPolicy.php
CheckoutablePermissionsPolicy.php Add missing policies (#4330) 2017-10-27 18:01:11 -07:00
CompanyPolicy.php
ComponentPolicy.php
ConsumablePolicy.php Add missing policies (#4330) 2017-10-27 18:01:11 -07:00
CustomFieldPolicy.php
CustomFieldsetPolicy.php Adds permission checks for custom fields and custom fieldsets (#5645) (#5795) 2018-07-12 18:28:20 -07:00
DepartmentPolicy.php
DepreciationPolicy.php
LicensePolicy.php Fixed policy namespace 2017-12-06 14:49:52 -08:00
LocationPolicy.php
ManufacturerPolicy.php
SnipePermissionsPolicy.php Added comments to SnipePermissionsPolicy for clarity 2017-12-07 21:00:09 -08:00
StatuslabelPolicy.php
SupplierPolicy.php
UserPolicy.php