Kumi
79aa7978bb
Defines a new capability 'report/usergrades:view' with associated risks and context level. Grants managers permission to access this report. Updates page setup to check the new capability, ensuring appropriate access control. Increments plugin version to reflect these changes. Enhances security and manages user access more effectively.
12 lines
268 B
PHP
12 lines
268 B
PHP
<?php
|
|
|
|
$capabilities = array(
|
|
'report/usergrades:view' => array(
|
|
'riskbitmask' => RISK_PERSONAL,
|
|
'captype' => 'read',
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
'archetypes' => array(
|
|
'manager' => CAP_ALLOW,
|
|
),
|
|
),
|
|
);
|