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

Combine course:viewhiddenuserfields and user:viewhiddendetails capabilities to prevent confusion

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Go to Site administration > Users > Permissions > User policies and find the 'Hide user fields' option. Select some common fields (e.g. city, description) and save the page
      2. Create a course and add some students into it
      3. Log in as a student and check the profiles of the other students. Confirm that you cannot see the profile fields that have been hidden
      4. As admin, modify the student role and allow moodle/course:viewhiddenuserfields capability
      5. Repeat the above student steps. You should be able to see the hidden fields on the user's profiles.
      6. *Check that the student is able to see the hidden fields
      Show
      Go to Site administration > Users > Permissions > User policies and find the 'Hide user fields' option. Select some common fields (e.g. city, description) and save the page Create a course and add some students into it Log in as a student and check the profiles of the other students. Confirm that you cannot see the profile fields that have been hidden As admin, modify the student role and allow moodle/course:viewhiddenuserfields capability Repeat the above student steps. You should be able to see the hidden fields on the user's profiles. *Check that the student is able to see the hidden fields
    • Workaround:
      Hide

      Use capability moodle/user:viewhiddendetails instead

      Show
      Use capability moodle/user:viewhiddendetails instead
    • Affected Branches:
      MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-51630-master

      Description

      To reproduce..

      • Go to Site administration > Users > Permissions > User policies and find the 'Hide user fields' option. Select some common fields (e.g. city, description) and save the page
      • Create a course and add some students into it
      • Log in as a student and check the profiles of the other students. Confirm that you cannot see the profile fields that have been hidden
      • As admin, modify the student role and allow moodle/course:viewhiddenuserfields capability
      • Repeat the above student steps.

      You will find that the student is still unable to see the hidden fields despite being given that capability

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                howardsmiller Howard Miller
                Peer reviewer:
                Jun Pataleta
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                6 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated: