Skip to content

[18.0] dms: Broken access rules #434

@LorenzoC0

Description

@LorenzoC0

Module

dms

Describe the bug

The write, unlink and create access permissions defined in the dms groups are not working as intended. Every operation is allowed regardless of the permissions the user has at that time.

To Reproduce

Affected versions:

  • 18.0
  • 16.0 - Not affected

Steps to reproduce the behavior:

  1. Create a new access group with "Create access" and "Unlink access" active. Leave "Write access" unchecked.
  2. Make sure the user you're on is included in the access group
  3. Setup a storage with a root folder.
  4. Assign the newly created group to the root folder just created.
  5. Upload a file in the folder.
  6. Open Form view of the file.
  7. Create a new Tag and add it to the file
  8. Save.

Expected behavior
The expected behavior after these steps is that the user should not be able to save the file since it does not have "Write access" as a permission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions