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

Non-editing teacher role cannot view/hide activities with permission set to allow.

    XMLWordPrintable

Details

    • MOODLE_19_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • wip-MDL-21097-master
    • Hide

      The modification relates to items in course settings:

      • Turn editing on/off
      • Activity chooser on/off (visible only in editing mode, not available on frontpage)
      • Edit course
      1. Create a course, add several modules in it
      2. Enrol one user with teacher role and one user with non-editing teacher role
      3. Also give two users those roles on frontpage
      4. Having default capabilities for roles, make sure that teacher can see all nodes listed above and non-editing teacher can see none (for both course and frontpage)
      5. Withdraw from teacher capability to edit course, give non-editing teacher capability course:activityvisibility
      6. Make sure teacher can not see node 'edit course' but can turn editing on and when editing is on he can manage activities (again, course and frontpage)
      7. Make sure non-editing teacher can turn editing on, does not see both other items and can show/hide modules
      8. Create a role with only course:update capability and no other course capabilities (awkward but still). Make sure user is able to switch editing mode on and edit sections (Note: In 2.3 there is no capability 'course:movesections' and in order to move sections capability 'course:update' is checked.)

      Will be really good if also can be tested when non-editing teacher has only capability to hide sections (revoke back activityvisibility) or capability to move sections.

      In 2.5+ (change not backported) non-editing teacher with only capability to set the current section should be able to do it but only in topics format.

      Sorry, all versions need to be tested separately (except 2.5/master is still on-sync).

      Show
      The modification relates to items in course settings: Turn editing on/off Activity chooser on/off (visible only in editing mode, not available on frontpage) Edit course Create a course, add several modules in it Enrol one user with teacher role and one user with non-editing teacher role Also give two users those roles on frontpage Having default capabilities for roles, make sure that teacher can see all nodes listed above and non-editing teacher can see none (for both course and frontpage) Withdraw from teacher capability to edit course, give non-editing teacher capability course:activityvisibility Make sure teacher can not see node 'edit course' but can turn editing on and when editing is on he can manage activities (again, course and frontpage) Make sure non-editing teacher can turn editing on, does not see both other items and can show/hide modules Create a role with only course:update capability and no other course capabilities (awkward but still). Make sure user is able to switch editing mode on and edit sections (Note: In 2.3 there is no capability 'course:movesections' and in order to move sections capability 'course:update' is checked.) Will be really good if also can be tested when non-editing teacher has only capability to hide sections (revoke back activityvisibility) or capability to move sections. In 2.5+ (change not backported) non-editing teacher with only capability to set the current section should be able to do it but only in topics format. Sorry, all versions need to be tested separately (except 2.5/master is still on-sync).

    Description

      With the activity view/hide capability (Capabilities/moodle/course:activityvisibility) set to allow in the non-editing teacher role, the non-editing teacher still cannot do make activites visible or hidden. The only to allow them to do this is to give the manage activities capability.

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              shoepner Sara Hoepner
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Frédéric Massart Frédéric Massart
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              12 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/Jul/13