I am using moodle 2.2.
I have a custom block called instructors located beneath the blocks folder blocks\instructors
I have experimented with the has_capability() function, but keep getting the message "Capability "blocks/instructors:manager_view" was not found".
I have a db folder beneath the instructors folder that contains a access.php file that includes this
'block/instructors:manager_view' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_BLOCK,
'legacy' => array(
'manager' => CAP_ALLOW
)
),
I have incremented the version.php # located in the instructors folder, visited notifications but still get the message..
Capability "blocks/instructors:manager_view" was not found! This has to be fixed in code.
- line 370 of \lib\accesslib.php: call to debugging()
- line 43 of \blocks\instructors\index.php: call to has_capability()
Please help, frustrated.