mod/xxxx:view capability does not work in my custom module

Re: mod/xxxx:view capability does not work in my custom module

by Marina Glancy -
Number of replies: 0
Picture of Core developers Picture of Moodle HQ Picture of Moodle Workplace team Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

db/access.php only sets the default role mapping that is only read when module is installed (or a new capability was added).

Check the Student role and make sure that this capability is set to prohibit there.

If you do not see this capability when editing the role - make sure that you have bumped the plugin version and ran upgrade