Reviewed: https://reviews.mahara.org/10825 Committed: https://git.mahara.org/mahara/mahara/commit/479ff998b57ad30d677e6c0d99a10157c3efb2c6 Submitter: Robert Lyon (robe...@catalyst.net.nz) Branch: master
commit 479ff998b57ad30d677e6c0d99a10157c3efb2c6 Author: Cecilia Vela Gurovic <cecili...@catalyst.net.nz> 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 -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1857936 Title: Lock page and artefact instructions Status in Mahara: Fix Committed 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. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1857936/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp