snipe-it/resources/views
Daniel Meltzer 3cea12565b Add missing policies (#4330)
* Add Authorizable trait and interface to our user model so we have access to User::can/User::cant.  We should take a look at where else our user model has diverged from Larvel since it was created...

* Policy cleanup/fixes.

This commit adds policies for the missing backend/"settings" areas.  The
permissions were implemented a while back but the policies did not, so
authorizing actions was failing.

In addition, this condenses a lot of code in the policies into base
classes.  Most of the files were identical except for table names, so we
move all of the checks into a base class and override the table name in
each policy.

* Use a better name and permission for the check in the default layout.
2017-10-27 18:01:11 -07:00
..
accessories Added more ajax select2 boxes to checkouts, remove helper ->with() methods 2017-10-26 03:43:28 -07:00
account Fixed #2857 - better CSS for requestable assets page when no results 2017-10-25 20:07:10 -07:00
admin
asset_maintenances Added content security middleware 2017-09-28 19:45:15 -07:00
auth Fixes #4240 - allows admins to use custom password reset URL 2017-10-19 12:22:27 -07:00
categories Features/image uploads (#4320) 2017-10-25 22:35:58 -07:00
companies Features/image uploads (#4320) 2017-10-25 22:35:58 -07:00
components Added more ajax select2 boxes to checkouts, remove helper ->with() methods 2017-10-26 03:43:28 -07:00
consumables Added more ajax select2 boxes to checkouts, remove helper ->with() methods 2017-10-26 03:43:28 -07:00
custom_fields Added content security middleware 2017-09-28 19:45:15 -07:00
departments Features/image uploads (#4320) 2017-10-25 22:35:58 -07:00
depreciations Depreciation view 2017-10-17 11:20:05 -07:00
emails Fixes #4267 - email notifications showing model name as number 2017-10-20 18:58:11 -07:00
errors
groups Fixes #906 - groups view 2017-10-17 21:43:57 -07:00
hardware Use select2 partials 2017-10-26 21:52:00 -07:00
importer Fixed larger button size 2017-10-25 18:13:55 -07:00
layouts Add missing policies (#4330) 2017-10-27 18:01:11 -07:00
licenses Added more ajax select2 boxes to checkouts, remove helper ->with() methods 2017-10-26 03:43:28 -07:00
locations Features/image uploads (#4320) 2017-10-25 22:35:58 -07:00
manufacturers Features/image uploads (#4320) 2017-10-25 22:35:58 -07:00
modals Fixed model number not saving in modal 2017-10-25 13:17:35 -07:00
models Added manufacturers and categories select lists 2017-10-26 22:09:08 -07:00
paginator
partials Added manufacturers and categories select lists 2017-10-26 22:09:08 -07:00
reports Use footer sumformatter for cost totals 2017-10-18 06:24:36 -07:00
settings Adds translation string placeholders for new LDAP functionality 2017-10-19 12:22:54 -07:00
setup Fixes #4036 - adds test email button to general settings 2017-10-19 08:18:56 -07:00
statuslabels Adds more consistent visual display of status label types 2017-10-19 11:06:55 -07:00
suppliers Features/image uploads (#4320) 2017-10-25 22:35:58 -07:00
users Fixed #4308 - checkin and delete from user page 2017-10-25 11:11:32 -07:00
vendor Temp fix for markdown stuff 2017-10-20 20:22:14 -07:00
dashboard.blade.php Don’t reload the page if the API returns a 500 2017-10-06 18:15:13 -07:00
notifications.blade.php