snipe-it/app/Http/Controllers/Api
Till Deeke 48bbbe0f40 Fixing authorization issues (#5807)
* adds permission checks for companies

* adds permission checks for depreciations

* adds permission check for all reports

* fixes permissions for departments

* fixes permission naming (edit -> update)

* fixes authorization checking wrong permission in API

The authorization was checking for the non-existent „edit“ method where it should have checked for the „update“ method.

* adds authorization checks for select2 lists

* adds missing authorization checks for api

* fixes user authorization check for creating users

* adds additional check viewing assets on showing a users assets

* Removes authorization checks for select2 lists

Reference: https://github.com/snipe/snipe-it/pull/5807#pullrequestreview-136018755
2018-07-12 18:28:02 -07:00
..
AccessoriesController.php Constrain accessory by category ID if one is passed 2017-11-14 16:47:21 -08:00
AssetMaintenancesController.php Fixed #5151 - added asset tag to maintenances 2018-03-05 16:26:40 -08:00
AssetModelsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
AssetsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
CategoriesController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
CompaniesController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
ComponentsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
ConsumablesController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
CustomFieldsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
CustomFieldsetsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
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 Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
ImportController.php Change duplicate header check to return 1-based header indices 2018-03-22 19:40:12 -07:00
LicensesController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
LocationsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
ManufacturersController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
ProfileController.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
ReportsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
SettingsController.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
StatuslabelsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
SuppliersController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
UsersController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00