Hi All, I am trying to add a new capabilities in access.php. Though I am not allowing all the roles but still it is showing all roles are allowed for this capabilities. I have updated version number in version.php and also, put the same version in install.xml. I am not sure what I am doing wrong. Any help will be highly appreciated.
I have put this following code in access.php for the capabilities.
'mod/widget:upload' => array(
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'teacher' => CAP_PREVENT,
'manager' => CAP_ALLOW
Also, it displays the capability name as
View widgetmod/widget:view Yes
I have tried to see the capabilities for a student user acc.
In the first line it is coming inside square bracket while second one is coming in the right format. though I have added the following line in lang/string definition file in lang folder.
Thanks in advance for your help.