Admin block menu item for managers

Admin block menu item for managers

by Michael Zehr -
Number of replies: 1

I'd like to add a menu item to the admin block that will be available for managers.

I'm customizing an enrollment plugin, and it has a manage page, and the managers on the site have the necessary capabilities to access it and change enrollments.  The plugin adds a "manage" menu item to the admin block.  However that menu item is only available for users with the site:config capability.

Even if I change the plugin's settings.php file, the lib/pluginlib.php code only includes a plugin's settings.php if $hassiteconfig is true.  This permission isn't given to managers by default.  We're a small enough site and informal enough that I could grant managers that right, but my preference would be to add that item to the menu somehow for users with the enrol/manual:manage capability.

Is there another code path that can change the menu that would be less risky to customize?

 

Average of ratings: -
In reply to Michael Zehr

Re: Admin block menu item for managers

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators
Just guessing, could the add_course_navigation() of your plugin help?