I'm new to developing blocks.. and started creating a block 'available_courses' which needs to be only visible by certain role and only certain role can add it on dashboard page...
I have created a new role testmanager with archetype type as Student and context where the role may be assigned as system..
my block has the following code in the access.php
My question is by default when installing this block can I make it so only the role I created testmanager can add this block and no one else except site admins..
when I look at: moodleurl/admin/tool/capability/index.php
and search for the above capabilities and then check all in roles selection and click get the overview.. it shows that
block/available_courses:addinstance & block/available_courses:myaddinstance -> Allowed for Authenticated user as well as my custom role.. but I just want my custom role to be able to add the instance to /my dashboard
help is much appreciated