snipe-it/app
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
..
Console Recrypt the LDAP password properly 2017-10-18 08:15:23 -07:00
Events Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Exceptions Fix standardized exception formatter for correct payload 2017-10-24 17:57:49 -07:00
Helpers Make sure payload is always passed, even if null 2017-08-25 03:27:31 -07:00
Http Refined upload code 2017-10-27 17:40:10 -07:00
Importer Fixed order number and warranty bug in importer 2017-10-26 16:13:35 -07:00
Jobs Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
LegacyEncrypter First stab at a recrypter for legacy mcrypt conversion 2017-08-21 22:30:56 -07:00
Listeners Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Models Add missing policies (#4330) 2017-10-27 18:01:11 -07:00
Notifications Fixes #4230 - adds model name and manufacturer to emails 2017-10-17 13:30:32 -07:00
Observers Fixes #1190 - added basic audit workflow 2017-08-25 10:04:19 -07:00
Policies Add missing policies (#4330) 2017-10-27 18:01:11 -07:00
Presenters Slight tweak to model name presenter 2017-10-26 21:50:39 -07:00
Providers Add missing policies (#4330) 2017-10-27 18:01:11 -07:00