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

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

XMLWordPrintable

    • MOODLE_30_STABLE
    • MOODLE_32_STABLE
    • MDL-55464_m32v1
    • Easy
    • 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

      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!

            sbourget Stephen Bourget
            jprovasnik John Provasnik
            Frédéric Massart Frédéric Massart
            Dan Poltawski Dan Poltawski
            Simey Lameze Simey Lameze
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.