If this role is assigned to a course, this role works exactly as I need it to, except it works for all forums in that course. I'd like to have it work for a single forum.
Looking at the database, I find the forum I'm looking for-
I then look for the context -
||3 (this is my course id)|
||13 (this is my forum id)|
If I look in /lib/accesslib, I see that a context level of 50 is for courses, and a context level of 70 is for modules. I then look at my role assignments -
Now, if I change the contextid to 63, this user should now only have these rights for the forum I want them to have. But they don't.
So my thought is that maybe I'm not getting granular enough - I'm looking for any module with an instance of 13, aren't I? I could have 13 wikis, or quizzes, or anything of that sort, can't I? So I look at my course modules table -
I then look up those ids -
Now, 16 is what shows in the URL if I access the forum, so I try changing the contextid to 69. No joy. I try 104. It still doesn't work.
So what am I doing wrong?