snipe-it/app/Http/Controllers
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
..
Api Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
Auth Authentication via REMOTE_USER (clean repull) (#5204) 2018-03-14 12:48:07 -07:00
AccessoriesController.php Check for valid accessory category 2018-04-23 16:04:01 -07:00
ActionlogController.php
AssetMaintenancesController.php Create asset maintenance - Added orange bar for required asset to edit view (#5520) 2018-05-16 19:23:23 -07:00
AssetModelsController.php Feature/custom fields default values (#5389) 2018-04-23 21:16:55 -07:00
AssetsController.php Improved files display 2018-05-02 14:13:06 -07:00
CategoriesController.php
CompaniesController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
ComponentsController.php
ConsumablesController.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
Controller.php
CustomFieldsController.php Adds permission checks for custom fields and custom fieldsets (#5645) (#5795) 2018-07-12 18:28:20 -07:00
CustomFieldsetsController.php Adds permission checks for custom fields and custom fieldsets (#5645) (#5795) 2018-07-12 18:28:20 -07:00
DashboardController.php
DepartmentsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
DepreciationsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
GroupsController.php
ImportsController.php Fixed #5217 - permissions error with importer for non-admins 2018-03-22 14:17:44 -07:00
LicensesController.php Added license categories 2018-05-04 21:01:38 -07:00
LocationsController.php
ManufacturersController.php
ModalController.php
ProfileController.php
ReportsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
SettingsController.php Added option to include model information on asset labels. (#5301) 2018-07-12 18:23:12 -07:00
StatuslabelsController.php
SuppliersController.php
UsersController.php Could should not be equal to 1 2018-05-16 19:38:02 -07:00
ViewAssetsController.php De-normalize new counters from 4.3.0 (#5547) 2018-05-16 19:20:43 -07:00