snipe_it/app/Http/Controllers/Api
Tobias Regnery 1ccbf8942c Add ability to tie locations to companies
Locations are the last big part of the application that can't be tied to companies.
This can be a problem with FullMultipleCompanySupport, because you can't restrict the visibility of locations to the company of the users.

In order to change this, add a company_id to the locations table and wire everything up in the views and controllers.
Aditionally add a new formatter to filter the locations to a specific company, like it is done for assets.

Locations are properly scoped to the users company if FullMultipleCompanySupport is enabled.
If a parent location of a location has a different company than the user, the location does not show up.
2024-11-04 10:03:37 +01:00
..
AccessoriesController.php Merge branch 'develop' into testing/fmcs-accessories 2024-09-30 12:59:27 -07:00
AssetFilesController.php More type-hinting 2024-07-05 07:07:20 +01:00
AssetMaintenancesController.php Merge remote-tracking branch 'origin/develop' into features/add_created_at_created_by 2024-09-20 13:43:50 +01:00
AssetModelFilesController.php Fix some typos in models file handler. 2024-08-21 22:24:08 +02:00
AssetModelsController.php Eager load adminuser 2024-09-20 14:33:26 +01:00
AssetsController.php Refactor asset creation with API 2024-10-14 15:14:41 +02:00
CategoriesController.php Eager load adminuser 2024-09-19 19:56:39 +01:00
CompaniesController.php Refactor isDeletable on companies 2024-09-19 20:38:34 +01:00
ComponentsController.php Added manufacturer and model_number to components 2024-10-23 17:50:22 +01:00
ConsumablesController.php Added ability to checkout consumables in variable qty 2024-10-23 15:05:35 +01:00
CustomFieldsController.php More type-hinting 2024-07-05 07:07:20 +01:00
CustomFieldsetsController.php More type-hinting 2024-07-05 07:07:20 +01:00
DepartmentsController.php Change user_id to created_by 2024-09-17 22:16:41 +01:00
DepreciationsController.php Removed duplicate line 2024-09-19 18:26:08 +01:00
GroupsController.php Additional consistencies 2024-09-19 17:20:56 +01:00
ImportController.php More type-hinting 2024-07-05 07:07:20 +01:00
LabelsController.php More type-hinting 2024-07-05 07:07:20 +01:00
LicensesController.php Added created_by 2024-09-19 17:01:48 +01:00
LicenseSeatsController.php Change user_id to created_by 2024-09-17 22:16:41 +01:00
LocationsController.php Add ability to tie locations to companies 2024-11-04 10:03:37 +01:00
ManufacturersController.php Added manufacturer and model_number to components 2024-10-23 17:50:22 +01:00
PredefinedKitsController.php Eager load adminuser 2024-09-19 19:41:46 +01:00
ProfileController.php Fixed API key missing translations 2024-07-09 13:17:46 +01:00
ReportsController.php Made type searchable in action logs 2024-10-30 13:21:13 +00:00
SettingsController.php More type-hinting 2024-07-05 07:07:20 +01:00
StatuslabelsController.php fixed error message 2024-09-25 16:19:09 -07:00
SuppliersController.php More type-hinting 2024-07-05 07:07:20 +01:00
UsersController.php Fix user creation with FullMultipleCompanySupport enabled over API 2024-10-16 11:47:18 +02:00