Cannot share portfolio after it has been submitted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Dianne Tennent | ||
21.04 |
Fix Released
|
Medium
|
Unassigned | ||
21.10 |
Fix Released
|
Medium
|
Unassigned | ||
22.04 |
Fix Released
|
Medium
|
Dianne Tennent |
Bug Description
Environment: main branch, postgres, Firefox+Chromium
Steps to reproduce:
1. Create a controlled group that allows submissions
2. Masquerade as a member of the group
3. Submit a page for group assessment group from the group's home page. (Not from 'Pages and collections')
4. Return to the page you submitted, click 'Manage access'
5. Share with a person, admin account
Expected outcome:
Portfolio is able to be shared with admin account
Actual outcome:
Access denied error: You do not have access to view this page.
You cannot edit this page because it has been submitted for assessment to "Submissions Testing". You will have to wait until a tutor releases the page.
Note: people should be able to share their portfolios even after they have been submitted.
Changed in mahara: | |
milestone: | 22.04.0 → 22.04rc2 |
Changed in mahara: | |
assignee: | nobody → Dianne Tennent (dianne-t) |
Changed in mahara: | |
status: | Confirmed → In Progress |
description: | updated |
Changed in mahara: | |
status: | In Progress → Fix Committed |
milestone: | 22.04rc2 → 22.04.0 |
The problem is not the access permissions. When you go to 'Shared by me' you can see that the portfolio was shared successfully. The error message comes about because when you give access while you are editing the page, you are being redirected to the 'Edit' screen, which is correctly not available while the portfolio is submitted. Instead, the portfolio author should probably be best redirected to the 'Display' mode of the page to prevent this problem.