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

Inconsistent behavior when (a) modifying a legacy role (b) defining a new role inherited from legacy role

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: Roles / Access
    • Labels:
      None
    • Environment:
      Tested on demo.moodle.org on March 11, 2007
    • Affected Branches:
      MOODLE_18_STABLE

      Description

      I wanted certain teachers to be able to see hidden courses in hidden categories. I tried two methods using roles. The two methods should have yielded equivalent results, but only one worked.

      Method 1: modify the legacy role Teacher (this works)

      login as admin
      Site administration -> Users -> Permissions -> Define roles
      edit the Teacher role
      allow "See hidden categories"
      allow "View hidden courses"
      any Teacher who now logs in can see hidden categories and courses

      Method 2: create a new role that inherits from Teacher (this does not work)

      login as admin
      create a new role CanSee inheriting from legacy role Teacher (editing)
      allow CanSee to see hidden categories
      allow CanSee to see hidden courses
      in site context, assign user X to role CanSee
      login as user X – cannot see hidden categories and courses

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lazyfish Yu Zhang
              Reporter:
              jisner John Isner
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: