capabilities problem

Re: capabilities problem

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The correct way to add new capabilities for your module is to create a file called access.php in your modules DB folder (mod/mymodule/db/access.php).

This is documented at Development:NEWMODULE Adding capabilities Which I have just substantially edited to make it clearer.