Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.7.2, 2.8.6, 2.9
-
Component/s: Blocks
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
-
Fixed Branches:MOODLE_28_STABLE, MOODLE_29_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-47450-master -
Pull Master Diff URL:
-
Sprint:Team Beards Sprint 9
Description
As a normal logged in user (authenticated user), I navigate to my user profile page (Public profile, user/profile.php) and then click on the 'Customise this page' button. I then try to re-arrange the order of the blocks by dragging by mouse. At this point I get this javascript error message:
Sorry, but you do not currently have permissions to do that ([[editblock]])
URL: http://jb23347.vledev2.open.ac.uk/m2/lib/ajax/blocks.php?courseid=1&pagelayout=mypublic&pagetype=user-profile
Debug info: Error code: nopermissions
Stack trace:
- line 1539 of /lib/blocklib.php: moodle_exception thrown
- line 124 of /lib/ajax/blocks.php: call to block_manager->process_url_move()
Interestingly the button 'Reset page to default' appears after the error message is dismissed, but the blocks have not moved to the desired new positions. Blocks can be moved by editing their weight in the block edit pages, it is just the dragging by mouse feature that is generating the error.
The capability moodle/user:manageownblocks which should allow the user to move blocks on their own profile page is set to allow for Authenticated user on this site (default I think anyway).
Attachments
Issue Links
- is a regression caused by
-
MDL-30132 Profile page layout defaults to 'mydashboard' when it should be using 'mypublic'
-
- Closed
-