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

Do not show edit options to users without permissions for site rules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide
      1. Go to Site administration / ►Reports / ►Event monitoring rules
      2. Create a rule , name it "Site rule" . Fill rest of the form as you like.
      3. Now login as a teacher and go to course > reports > event monitoring rules
      4. Create a rule and name it "Course rule"
      5. Confirm after submission in the resulting page you can see both course and site rule
      6. Make sure you can edit/copy/delete course rule but cannot do the same with site rule and there is no control button for site level rule.
      7. Try getting around this message by manually changing ruleid in urls for various actions and make sure you still can't perform the action
      Show
      Go to Site administration / ►Reports / ►Event monitoring rules Create a rule , name it "Site rule" . Fill rest of the form as you like. Now login as a teacher and go to course > reports > event monitoring rules Create a rule and name it "Course rule" Confirm after submission in the resulting page you can see both course and site rule Make sure you can edit/copy/delete course rule but cannot do the same with site rule and there is no control button for site level rule. Try getting around this message by manually changing ruleid in urls for various actions and make sure you still can't perform the action
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-47759-master

      Description

      From MDL-47741

      As a teacher I get the edit links to manage site rules and then get presented with a permissions error.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14