I have changed the capability in my access.php file, upgraded the version.php file and rebuild database. but my changed capability does not reflect its new parameters.
// old.
'mod/simplefeedback:submit' => array(
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'student' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),
//new
'mod/simplefeedback:submit' => array(
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'student' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW
)
),
lf I copy the new caoability as a new one and assign it to get_users_by_capability() funtion, it works as expected.
Is there a cache that I should be deleting?