Policies of the notification module
The policy functions of notification and their limitations, from $FunctionList in kernel/notification/module.php. In the administration they are chosen under Roles and policies; a policy on notification/* grants every function.
administrate
Checked by the views: job, runfilter, status.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'notification', 'administrate' );if fetch( 'user', 'has_access_to', hash( 'module', 'notification', 'function', 'administrate' ) )
...
/ifuse
Checked by the views: addtonotification, settings.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'notification', 'use' );if fetch( 'user', 'has_access_to', hash( 'module', 'notification', 'function', 'use' ) )
...
/ifRelated
Generated by ./console exp:help:examples from kernel/notification/module.php, kernel/classes/ezrole.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.