-
Bug
-
Resolution: Fixed
-
Critical
-
2.4.5, 2.5.1
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
-
At the moment, mod/...:view capabilities mostly work by having a require_once in the activities view.php file. Therefore, if you do not have that capability, but follow a link to the activity, then you will see an ugly error message.
However, currently, mod/...:view capabilities do not control the visibility of the link to the activity on the course page.
It is standard practice that we never show users links to things they are allowed to access, therefore, I think that if you don't have the mod/...:view capability, you should not see the link to that activity on the course page.
POLICY question: Is the interpreation in the last paragraph correct?
MDL-31519 has more background on this question.
- caused a regression
-
MDL-43197 Parent role only sees course total and no longer individual grades
-
- Closed
-
-
MDL-41179 Function cm_info::is_user_access_restricted_by_capability() assumes current user
-
- Closed
-
- has a non-specific relationship to
-
MDL-41638 Function coursemodule_visible_for_user() does not check mod/xxx:view capability
-
- Closed
-
- is duplicated by
-
MDL-31519 quiz should define the _cm_info_dynamic function in lib.php
-
- Closed
-