Adding custom report to roles

Re: Adding custom report to roles

by Perry Way -
Number of replies: 0

I am now able to get the report to show up in the roles settings adjustment page, however the settings do not work, in that if I allow Manager and Teacher access to the report, they still do not see it on their menu. I've followed everything suggested on this page (http://docs.moodle.org/dev/Reports) but something is preventing it from showing on the menu. Has anyone got a clue where I should look?

Here is a snippet of the contents of my access.php file. I believe this is all correct.

// People who can view the reports 
$capabilities = array(
'report/attendancespan:view' => array(
'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW)
)
);