Updater: Add a right to restrict access
Closed this issue · 1 comments
rohsyl commented
Add a new right to restrict updating to user with the right
rohsyl commented
Edit the file config/laraupdater.php
.
Ensure the policy
and the ability
are set to the right value. (See below)
'permissions' => [
/**
* Set which policy to check permissions
* You can create your own by implementing the
* rohsyl\laraupdater\Policies\ILaraUpdaterPolicy interface
* and registering it here
*/
'policy' => Omega\Utils\Upgrade\Policies\OmegaPermissionLaraUpdaterPolicy::class,
'parameters' => [
/*
* This entry is related to the policy:
* Omega\Utils\Upgrade\Policies\OmegaPermissionLaraUpdaterPolicy
*
* If you are not using this policiy, you can remove it.
*
* Set which ability is needed to perform an update
* This parameter accepts: null, or String(ability_name).
*/
'ability' => 'update_cms'
]
],