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

Add "mod/label:view" permission to Label Resource

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.2
    • Component/s: Resource
    • Testing Instructions:
      Hide

      Manual testing:
      This requires a course with at least 2 student users.

      • Create a label
      • Override the permissions on the label so the label:view permission is prohibited for student2
      • Have student1 view the label
      • Verify the label does not appear to student 2

      Automated testing:

      • Run behat for mod_label
      Show
      Manual testing: This requires a course with at least 2 student users. Create a label Override the permissions on the label so the label:view permission is prohibited for student2 Have student1 view the label Verify the label does not appear to student 2 Automated testing: Run behat for mod_label
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-55464_m32v1

      Description

      Some resources have the view permission (ie. mod/page:view) which gives admin powerful control over the resources & activities on the site.

      This permission would allows admin to prohibit teachers from seeing a Label. Normally, one would put a restrict access to control who views it (or hide it), but there is no way to hide a label from a course's teacher (ie. a large informational label that teachers do not need to see on a daily basis), and if you hide the label and remove a teacher's ability to view hidden objects at the Label Level, then the attached restrict access rules don't work for students.

      I think the addition of the view permission would be useful (even in all activities). Thank you!

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                5 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/16