I'm developing an activity module with a form to save student's entered information. Inside the module I created an additional page to let admins and managers to export collected data (from all instances of the module in every course). To access the page, I added an item to report menu in site administration with a dedicated "capability" and I assigned it to managers. I did as follow, but the menu item in report section is only visible to admins. Managers do not see it.
Can someone help me find the problem? I need that also managers can see the menu item.
In settings.php I have:
get_string('exportdatamenuitem', ' pluginname '),
$CFG->wwwroot . "/mod/pluginname/export_report.php",
$capabilities = array(
'mod/pluginname:admin' => array(
'riskbitmask' => RISK_PERSONAL,
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'manager' => CAP_ALLOW