backend_rights
Allows modification of current user’s access rights.
Shop-Script
Input (passed by reference)
$params['module'] string Name of the module processing current HTTP request.
$params['action'] string Name of the action processing current HTTP request.
$params['action'] string Name of the action processing current HTTP request.
… your plugin code …
Output
{$backend_rights}
$result array Access rights to be set for a current user in the form of an associative array, with access rights’ names as keys and access levels as values.
Shop-Script
Plugin code example
PHP
public function backendRights($params) { if ($params['module'] == 'orders') { return [ 'marketing' => 1, ]; } }