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

problem in define userrole

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.3
    • 1.8.5, 1.9
    • General
    • None
    • O.S : Fedora core 6, webserver : apache 2.2.6, php 5.2.5, Mysql 5.0
    • MySQL
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      Hi,
      I have problem with define UserRole, the problem is

      Though i set the option View hidden activities (moodle/course:viewhiddenactivities):Allow
      for the user role there is no effect in the course.

      If the user having the role navigates the course. it's showing the message
      "Sorry, this activity is currently hidden".
      Then i changed the code in the moodle/mod/scrom/view.php by changing the code...

      if (empty($cm->visible) and !has_capability('moodle/course:manageactivities', $context)) {
      notice(get_string("activityiscurrentlyhidden"));
      }

      to

      if (empty($cm->visible) and !has_capability('moodle/course:viewhiddenactivities', $context)) {
      notice(get_string("activityiscurrentlyhidden"));
      }

      its working fine....
      I hope it's a bug..check this out

      Attachments

        Issue Links

          Activity

            People

              poltawski Dan Poltawski
              madhan Madhan Ponnusamy
              Dan Marsden Dan Marsden
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Mar/08