[PAGES-353] writePermissionRequired is not set in actions as in old pages app Created: 25/Sep/20  Updated: 20/Apr/21  Resolved: 06/Jan/21

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

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Adam Siska
Resolution: Fixed Votes: 0
Labels: 623
Remaining Estimate: Not Specified
Time Spent: 29m
Original Estimate: Not Specified

Attachments: PNG File 57Pages-app-Read-only.png     PNG File 62-Pages-app-read-only.png     PNG File 62PagesNotallowederror.png    
Issue Links:
Cloners
is cloned by CONTTAGS-105 Modify tags action doesn't have write... Closed
Relates
relates to PAGES-425 Pages App shows Dialog Actions to Use... Closed
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
Epic Link: Migrate apps to new UI framework
Sprint: UI FW 19
Story Points: 2

 Description   

writePermissionRequired is used to check writting permissions in a node. In the old pages app, it disabled all the actions that required write permisions. In the new pages app, not all the actions that requires write permissions in the node are including it, it leads to actions available and errors when trying to execute this actions.

This is the status of the action bar when a read-only permissions assigned to a node in new pages-app:

This is how it used to be in 5.7.*:

Steps to reproduce (bundle with travel-demo)

  1. As superuser, go to the Security App and configure user eric readonly permissions for website > sportstation (role: travel-demo-editor).
  2. Login as eric
  3. Go to pages app and click on /sportstation. See that almost all the actions are available. Choose one: Edit the page > Click on Edit Page Properties > Edit the dialog and save.

Expected result

When opening pages app and click on /sportstation(readonly), actions that require write permissions shouldn't be available.

Current result

You can select an action that requires writting permissions. An error comes up:

Workaround

Decorate the pages-app and add writePermissionRequired: true to all the actions that need it.

Comments

It is just a matter of configuration, pages app should be configured in a correct way as it used to be in the old pages app in 5.7.

UI test is very easy to write, only use FMUI if it would be very easy to write (would require a user set, including in UI test (bootstrap with a user)


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