Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-11362

SCORM visibility vs Roles

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.5
    • Component/s: SCORM
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      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")); }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              poltawski Dan Poltawski
              Reporter:
              fjrincon Jesús Rincón
              Tester:
              Dan Marsden
              Participants:
              Component watchers:
              Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Apr/08