Hi,
I am developing a plugin type block. The role manager only can using it.
Access.php is:
'block/activity_modules:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_BLOCK,
'archetypes' => array(
'editingteacher' => CAP_PROHIBIT,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
But it doesn't work because that still the teacher can add the plugin.
Thanks!