snipe-it/app/Models
Daniel Meltzer 2a95a95e00 Company to logs (#2717)
* Fix the actionlog/companyables problem by adding a company_id to all actionlogs and scoping directly on that.  Works around bugs in laravel where trying to hunt down the polymorphic relationship would lead to an infinite loop

* Scope companyables in getactivityreport.  Also eager load.

* Improve reportscontroller, work on seeder to test this.

* Only show company users in checkout dialogs

* If no admin associated with log, it might be a request.  Leave blank instead of saying deleted admin

* When injecting company_id, use target instead of user if user is a superadmin

* Build up the seeder to generate users, companies, and logs.

* Eager load the log, don't scope the users log because the log should already include things only related to the user.
2016-09-29 22:20:49 -07:00
..
Accessory.php Actionlog Class: Improvements and polymorphism (#2561) 2016-09-06 19:39:42 -07:00
Actionlog.php Company to logs (#2717) 2016-09-29 22:20:49 -07:00
Asset.php Translate emails (#2652) 2016-09-26 14:13:07 -07:00
AssetMaintenance.php Use trans instead of lang:: 2016-07-10 21:07:59 -07:00
AssetModel.php Checkout Improvements, and initial support for requesting an asset model (#2573) 2016-09-15 19:58:27 -07:00
Category.php Updated undeleted validation 2016-07-26 01:49:21 -07:00
CheckoutRequest.php Checkout Improvements, and initial support for requesting an asset model (#2573) 2016-09-15 19:58:27 -07:00
Company.php Company to logs (#2717) 2016-09-29 22:20:49 -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 Actionlog Class: Improvements and polymorphism (#2561) 2016-09-06 19:39:42 -07:00
Consumable.php Actionlog Class: Improvements and polymorphism (#2561) 2016-09-06 19:39:42 -07:00
ConsumableAssignment.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CustomField.php Fix array generation for select 2016-08-25 21:04:10 -07:00
CustomFieldset.php Don’t make required encrypted custom fields required if user is not an admin 2016-08-25 21:03:52 -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 Check if username is userprincipalname 2016-08-30 08:34:17 -07:00
License.php Merge branch 'hotfixes/purchase_order' into develop 2016-09-27 01:31:02 -07:00
LicenseSeat.php Actionlog Class: Improvements and polymorphism (#2561) 2016-09-06 19:39:42 -07:00
Location.php Updated undeleted validation 2016-07-26 01:49:21 -07:00
Loggable.php Added docblocks and cleaned up spacing 2016-09-19 23:51:45 -07:00
Manufacturer.php Add manufacturer to licenses (#2436) 2016-08-16 18:49:54 -07:00
Requestable.php Checkout Improvements, and initial support for requesting an asset model (#2573) 2016-09-15 19:58:27 -07:00
Setting.php Fixed indenting 2016-07-13 05:47:32 -07:00
Statuslabel.php Updated undeleted validation 2016-07-26 01:49:21 -07:00
Supplier.php Added table name for trait 2016-07-26 02:04:31 -07:00
Throttle.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
User.php Checkout Improvements, and initial support for requesting an asset model (#2573) 2016-09-15 19:58:27 -07:00