2018-07-12 18:28:20 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Policies;
|
|
|
|
|
|
|
|
class CustomFieldsetPolicy extends SnipePermissionsPolicy
|
|
|
|
{
|
|
|
|
protected function columnName()
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Proxy the authorization for custom fieldsets down to custom fields.
|
2021-06-10 13:15:52 -07:00
|
|
|
* This allows us to use the existing permissions in use and have more
|
2018-07-12 18:28:20 -07:00
|
|
|
* semantically correct authorization checks for custom fieldsets.
|
|
|
|
*
|
|
|
|
* See: https://github.com/snipe/snipe-it/pull/5795
|
|
|
|
*/
|
|
|
|
return 'customfields';
|
2021-06-10 13:15:52 -07:00
|
|
|
}
|
2018-07-12 18:28:20 -07:00
|
|
|
}
|