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

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

by Sebastian Hepp -
Number of replies: 0

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: -