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

Users cannot add blocks to their profile page

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Note

      All profile pages should be accessed via user/profile.php, not user/view.php.

      Test 1
      1. Log in as an administrator.
      2. Visit your profile page and check that you can add blocks to it.
      3. Visit another user’s profile page and check that you add blocks to it.
      Test 2
      1. Log in as an administrator and visit ‘Security’ > ‘Site policies’ and uncheck (if it isn’t already) ‘Force users to log in for profiles’ and save.
      2. Log in as a user with no system wide roles.
      3. Visit your profile page and check that you can add blocks to it.
      4. Visit another user’s profile page and check that you can NOT add blocks to it.
      Test 3
      1. Log in as an administrator and edit the ‘Authenticated user’ role and set the capabilities ‘moodle/user:manageownblocks’ and ‘moodle/user:manageblocks’ to ‘Prohibit’ and save.
      2. Log in as a user.
      3. Visit your profile page and check that you can NOT add blocks to it.
      4. Visit another user’s profile page and check that you can NOT add blocks to it.
      5. As the admin set the capability ‘moodle/user:manageblocks’ to 'Allow' for the 'Authenticated user' role and save.
      6. As the user visit your profile page and check that you can NOT add blocks to it.
      7. As the user visit another user’s profile page and check that you can add blocks to it.
      Show
      Note All profile pages should be accessed via user/profile.php, not user/view.php. Test 1 Log in as an administrator. Visit your profile page and check that you can add blocks to it. Visit another user’s profile page and check that you add blocks to it. Test 2 Log in as an administrator and visit ‘Security’ > ‘Site policies’ and uncheck (if it isn’t already) ‘Force users to log in for profiles’ and save. Log in as a user with no system wide roles. Visit your profile page and check that you can add blocks to it. Visit another user’s profile page and check that you can NOT add blocks to it. Test 3 Log in as an administrator and edit the ‘Authenticated user’ role and set the capabilities ‘moodle/user:manageownblocks’ and ‘moodle/user:manageblocks’ to ‘Prohibit’ and save. Log in as a user. Visit your profile page and check that you can NOT add blocks to it. Visit another user’s profile page and check that you can NOT add blocks to it. As the admin set the capability ‘moodle/user:manageblocks’ to 'Allow' for the 'Authenticated user' role and save. As the user visit your profile page and check that you can NOT add blocks to it. As the user visit another user’s profile page and check that you can add blocks to it.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-37736_master
    • Sprint:
      Team Beards Sprint 9

      Description

      Users (other than admin) no longer seem able to add blocks to their profile page. I have tried on the latest 2.4.1 and 2.5 dev. They see the message "there are no blocks you can add to this page" I have tried on 2.2 and 2.3 and they are able to do this. Wondering if it is related to MDL-34270?

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: