-
Task
-
Resolution: Unresolved
-
Major
-
None
-
3.2, 4.0.5
-
None
-
MOODLE_32_STABLE, MOODLE_400_STABLE
In MDL-49029 mod/choice:view capability was added and it required nothing else than the capability without any extra has_capability checking, as modinfo is checking mod/$modname:view capability permissions for us. This includes:
- require_login & require_course_login with $cm
- validate_context (external functions)
- get_all_instances_in_course instances
- global search
We should be consistent across activities and perform the same kind of checkings. Right now some modules have a require_capability in mod/name/view.php some of them don't, mod/name/index.php should include a big require_capability on top of all other checkings?
I see this mod/$modname:view capability as the whole activity is not available for users without this capability. This issue will also help us check that we are not missing any point of entry when the capability is disabled.
Creating an issue for it as suggested by Eloy.
- Discovered while testing
-
MDL-49029 Add "mod/choice:view" permission to Choice Activity
-
- Closed
-
- has a non-specific relationship to
-
MDL-55554 Add "mod/wiki:view" permission to wiki Activity
-
- Open
-
-
MDL-55254 Add "mod/data:view" permission to Database Activity
-
- Closed
-
-
MDL-55464 Add "mod/label:view" permission to Label Resource
-
- Closed
-
-
MDL-55555 Add "mod/forum:view" permission to Forum Activity
-
- Closed
-
-
MDL-55556 Add "mod/scorm:view" permission to Scorm Activity
-
- Closed
-
- has been marked as being related by
-
MDL-14448 Lesson should have a capability mod/lesson:view
-
- Closed
-
-
MDL-55251 Add "mod/chat:view" permission to Chat Activity
-
- Closed
-