Lock page and artefact instructions

Bug #1857936 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Cecilia Vela Gurovic

Bug Description

At the moment, instructions can be added to a page and peer assessments. As per bug #1857931 it will also be possible to add instructions to other generic text blocks. Since instructions are written for assessment purposes, it shall not be possible for people to change these instructions once they copied a template to their personal portfolio area (or a group portfolio).

• A new page setting “Template” is added to the “Advanced” panel on all portfolio page areas of Mahara (personal, group, institution, site) with a Yes/No switch.
• When “Template” is set to “Yes”, people copying the page into their personal account will not be able to change any page or artefact instructions, no matter their role in Mahara.
• A group administrator can remove the template lock also of copied pages, change instructions, and re-lock the instructions.
• An institution and site administrator can also remove the template lock on pages on the institution level (institution administrator and site administrator) and site level (site administrator only) at any time.
• When a portfolio author views the settings of a copied page, they do not see a greyed out “Yes” switch but a link to the original template instead with the title of that template linked. [Check with developer:] If the associated template is deleted, the text “Page deleted” is displayed. If the author does not have access to the template page any more even though it still exists, the link is still displayed but they see the normal “Access denied” message.

Tags: newfeature
Changed in mahara:
assignee: nobody → Cecilia Vela Gurovic (ceciliavg)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/10825

Changed in mahara:
milestone: none → 20.10.0
status: Confirmed → In Progress
Revision history for this message
Robert Lyon (robertl-9) wrote :

The expander chevron seems to misbehave in the config modal when first opened

It doesn't spin around until on first click (does on second click)

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10825
Committed: https://git.mahara.org/mahara/mahara/commit/479ff998b57ad30d677e6c0d99a10157c3efb2c6
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 479ff998b57ad30d677e6c0d99a10157c3efb2c6
Author: Cecilia Vela Gurovic <email address hidden>
Date: Tue Mar 17 15:30:14 2020 +1300

Bug 1857936: Lock page and artefact instructions

- A new page setting ���Template��� is added to the
���Advanced��� panel on all portfolio page areas of
Mahara (personal, group, institution, site)
with a Yes/No switch
- added 2 columns to view table:
'templatetocopy': indicates if the view is a
template that can be copied
'originaltemplate': if it has a value then the view
is a copy of a template and should have
the instructions locked.
The value it contains is the viewid of
the original template.
- if a view is a copy of a template: display
instructions in view settings and text blocks
but don't allow to edit them. If empty, don't show them.
- When adding a new text block to a page,
don't allow to add instructions
- Allow to remove the lock on a copy for roles:
site admins in institution and site pages
institution admins in institution pages
group admins in group pages
- If a template view is deleted from the site,
then all the locked copies it has will remain locked.

behatnotneeded

Change-Id: I47e98cf8413da5ba6d5dea0e29dddbd80c481317

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
tags: added: newfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.