snipe-it/app/Models
Daniel Meltzer e0938cf82d Scope to company when viewing assets (#2315)
* If a user doesn't belong to a company, when scoping to a company we should only show items that don't belong to a company.

* Scope tables/items to the company they belong to when fetching items for the index.

* Fix asset count to also scope to company.  This fixes dashboard view

* Exempt super users from the child company check to be consistent.  Fixes license count on dashboard now that we scope everything
2016-07-25 19:46:29 -07:00
..
Accessory.php Formatting fixes for coding standards 2016-06-22 12:27:41 -07:00
Actionlog.php Fixed dashboard for components 2016-05-18 19:16:43 -07:00
Asset.php Scope to company when viewing assets (#2315) 2016-07-25 19:46:29 -07:00
AssetMaintenance.php Use trans instead of lang:: 2016-07-10 21:07:59 -07:00
AssetModel.php Smaller miminums for model and category name 2016-06-22 12:50:21 -07:00
Category.php Smaller miminums for model and category name 2016-06-22 12:50:21 -07:00
Company.php Scope to company when viewing assets (#2315) 2016-07-25 19:46:29 -07:00
CompanyableChildScope.php Updated docblocks 2016-04-07 13:21:09 -07:00
CompanyableChildTrait.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CompanyableScope.php Updated docblocks 2016-04-07 13:21:09 -07:00
CompanyableTrait.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Component.php Updates to components 2016-06-22 14:55:17 -07:00
Consumable.php Add model_no, item_no, and manufacturer to consumables 2016-05-16 17:11:31 -07:00
ConsumableAssignment.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CustomField.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CustomFieldset.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Depreciable.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Depreciation.php Fixes #1909 - allow 0 month depreciation 2016-04-19 07:39:54 -07:00
Group.php Formatting fixes for coding standards 2016-06-22 12:27:41 -07:00
ICompanyableChild.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Ldap.php Removed port stuff, since LDAP ignores it anyway :-/ 2016-07-22 16:21:16 -07:00
License.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
LicenseSeat.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Location.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Manufacturer.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Setting.php Fixed indenting 2016-07-13 05:47:32 -07:00
Statuslabel.php Fix tests (#2273) 2016-07-19 15:50:21 -07:00
Supplier.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Throttle.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
User.php No longer require last name 2016-07-21 19:44:07 -07:00