Skip to content

Unable to remove all permissions on a document. #977

Closed

Description

@damascenaluiz

🐛 Bug Report

I cannot remove all permissions on a document through the administrative interface.

Have you spent some time to check if this issue has been raised before?

Yes.

To Reproduce

1 - Add a group, team, role or wildcard to a document that does not contain any read or write permission.
2 - Update the document.
3 - Try to remove all permissions.
4 - Update the document again.
5 - The document is updated, but the permissions remain unchanged.

Expected behavior

The document should be updated and contain no permissions, this should be treated as an empty array.

Actual Behavior

The document is updated with the previous permissions, if I try to remove all.

Your Environment

Appwrite 0.7.0

Activity

  1. added
    bug
    on Mar 14, 2021
  2. eldadfux commented on Mar 14, 2021

    @eldadfux
    Member

    I can't seem to be able to reproduce this issue. @christyjacob4 / @TorstenDittmann does this happen for you?

  3. damascenaluiz commented on Mar 14, 2021

    @damascenaluiz
    Author

    My screenshots:
    Steps: 1-2 OK:
    step1-2-ok

    Step: 3 - Unset all permissions.
    step3-clear-permissions
    Steps: 4-5 Document updated, but fails to permissions.
    step4-5-document-updated-fails-to-permissions

  4. eldadfux commented on Mar 14, 2021

    @eldadfux
    Member

    @damascenaluiz found the issue! Just submitted a PR with a fix.

  5. self-assigned this
    on Mar 14, 2021
  6. added
    waiting for release
    on Mar 14, 2021
  7. eldadfux commented on Mar 20, 2021

    @eldadfux
    Member

    Fixed and released in 0.7.1

  8. removed
    waiting for release
    on Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions