Details
Description
Good morning:
When the capability "moodle/course:viewhiddenactivities" is allowed for a role , if you try to access to a SCORM module and this module is hidden, it indicates that the resource is hidden and that it can't be shown.
I think the error is on this line of the file " /scorm/view.php":
if (empty($cm->visible) and
!has_capability('moodle/course:manageactivities', $context)) {
notice(get_string("activityiscurrentlyhidden"));
}
If we replace these lines for the following ones, it works correctly.
.
if (empty($cm->visible) and
!has_capability('moodle/course:viewhiddenactivities, $context)) { notice(get_string("activityiscurrentlyhidden")); } }
Issue Links
| This issue duplicates: | ||||
| MDL-13221 | problem in define userrole |
|
|
|
assigning to me - will test fix and look at patching it.
Dan