Could some kind folk please tell me how and where I can create a new capability.
I am making some changes to the lesson module which require a new capability. It is very similar to non-editing teacher role with regards to mod/lesson:manage & the view provided to non-editing teachers within lessons, but I require further restrictions as this role is for students. I don't want them to view reports/grades etc, just the alternative view for the lesson module.
I am providing 'edit' mode which I will rename the string for students to "Print View" for lesson module, so all pages can be displayed on a single web page without the editing buttons/links etc ..
I'm afraid the mod/lesson:edit & mod/lesson:manage capabilities simply do not suffice. I'm sure there should be a mod/lesson:view capability too, but its missing from my 1.8.8 moodle, never mind.
I have read the documentation for /lib/locallib.php and checked out /lib/db/access.php and within mod/lesson/db/access.php, but i'm still not clear where to add my new capabilities, or how to get it to update the capabilties for moodle tables. It's probably just a version file though. If it is the version.php file is it the one within the moodle root?
The rest of the coding within the lesson module seems straight forward to acheive what I am after, it is just the creation of new capabilities i'm confused over
.Print View for students, that'll stop em complaining about the lack of available printed copies of our lessons, hurrah
Thanks for any tips.
Steve