Skip to content

Shared image file appears to have "SRGDNVW" permissions (although PROPFIND ground truth has "SRGD") #1606

Description

@marcelklehr

Describe the bug
A sharee of an image can still open the image editor even though the have no editing permissions from the share. Saving the edited image will fail without an explanation.

To Reproduce
Steps to reproduce the behavior:

  1. Open using another account
  2. Share a picture to test account
  3. Uncheck "Editing" rights
  4. Go to web app via test account
  5. Preview shared picture
  6. Edit button is visible and picture can be edited (saving fails)

Expected behavior
Edit button is not visible

Additional context
The Viewer#canEdit computed property reveals "SRGDNVW" permissions for this.currentFile, but the PROPFIND-returned xml data shows permissions correctly as "SRGD". Presumably, somewhere that information is lost or overridden.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions