[PAGES-450] Writable property doesn't work Created: 11/Jun/21  Updated: 09/Nov/21  Resolved: 09/Nov/21

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: 6.2.8
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Jonathan Ayala Assignee: Jakub Petras
Resolution: Obsolete Votes: 0
Labels: headless-team-support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to PAGES-456 Component restrictions are not working Closed
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Steps to reproduce

  1. Create a test page with basic template and add an html component with some content
  2. Modify the html component definition to add writable: false in }}{{/mtk/templates/components/html.yaml
  3. Go to pages-app and open the page created in step 1 and select the html component
  4. Add a new html component

Expected results

According to the purpose of the writable property: 

Determines if component can be edited. Set to false to prevent editors editing the component.{quote}

So in step 3, the component cannot be edited whereas in step 4 you shouldn't be able to add any value

Actual results

The edit icon from the component bar disappears accordingly but edit component action in the action bar remains available so actually editors can edit the component. When creating a new component in step 4, value can also be assigned.

 



 Comments   
Comment by Christopher Chard [ 22/Jun/21 ]

Might https://jira.magnolia-cms.com/browse/PAGES-456 be a duplicate of this ticket?

Generated at Mon Feb 12 06:19:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.