General developer forum

 
 
Picture of Sebastian Hepp
[Moodle 1.9]Own Module capabilities for self created roles in access.php are ignored
 

Hello,

I am a developer of a module for moodle 1.9 and have a problem with the entries in the file access.php. We have the standard roles admin and student, but also some user created roles like kursdozent. In the access.php file of my module I set CAP_ALLOW for roles I want to have these capabilities (archetypes array).

After an update or new install of the module, only admin and student are set right. the role kursdozent isn't applied and therefore not set. How can I set my capabilites for kursdozent too?

 

best regards

Sebastian

 
Average of ratings: -