I want a system role to have access to a specific block administration link in the site administration menu but I'm having trouble and wonder if anybody can help.
I can create the link in the block settings.php file with:
$ADMIN->add('root', new admin_externalpage('librarianblocksettings', 'librarian_block', URL, array('block/librarian:managesettings'));
and this works properly provided I am logged in as a site admin. I have a system role (we'll call it Librarian) that I want to have access just to that administration page. See below:
* Librarian Admin
The Librarian role will only have rights to manipulate the administration page for the block and then have limited access within a course.
The block relies on some external data that is standard across all sites that will use the block as well as block specific data that will be set in the instance configuration.
What I need help with is getting the administration menu to show up for the Librarian role (similar to Badges when a system role has moodle/badges:manageglobalsettings rights). Any thoughts would be appreciated.