[MGNLDAM-695] DAM Choose Dialog shows Upload & UploadAndEdit actions even if the use has no rights to do that Created: 10/Feb/17  Updated: 12/Mar/21  Resolved: 12/Mar/21

Status: Closed
Project: Magnolia DAM Module
Component/s: DAM App
Affects Version/s: 2.2.1
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Bence Vass Assignee: Unassigned
Resolution: Obsolete Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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   

In any DAM choose dialog the actions "upload" and "uploadAndEdit" are always visible.

If the user chooses a folder in DAM and clicks "uploadAndEdit", he can upload an asset, even if he has no rights to add to that folder. Upon saving the new asset he will receive an "Access denied "error".
"Upload" lets him upload an asset too and will then display the error message.

Instead "upload" and "uploadAndEdit" should be grey and not clickable, if the user has no rights to execute those actions.



 Comments   
Comment by Roman Kovařík [ 12/Mar/21 ]

Fixed on latest https://demo.magnolia-cms.com/.magnolia/admincentral#app:pages-app:detail;/travel/contact:edit

https://git.magnolia-cms.com/projects/MODULES/repos/dam/browse/magnolia-dam-app-jcr/src/main/resources/dam-app-jcr/decorations/dam-app-core/dialogs/chooser.yaml#5

Generated at Mon Feb 12 05:02:21 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.