mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-19 20:14:09 -08:00
19 lines
503 B
PHP
19 lines
503 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Policies;
|
||
|
|
||
|
class CustomFieldsetPolicy extends SnipePermissionsPolicy
|
||
|
{
|
||
|
protected function columnName()
|
||
|
{
|
||
|
/**
|
||
|
* Proxy the authorization for custom fieldsets down to custom fields.
|
||
|
* This allows us to use the existing permissions in use and have more
|
||
|
* semantically correct authorization checks for custom fieldsets.
|
||
|
*
|
||
|
* See: https://github.com/snipe/snipe-it/pull/5795
|
||
|
*/
|
||
|
return 'customfields';
|
||
|
}
|
||
|
}
|