Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: deleted rules object does not throw error #2095

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

TheSlimvReal
Copy link
Collaborator

closes: #XX

Visible/Frontend Changes

  • [x]
  • [ ]

Architectural/Backend Changes

  • [x]
  • [ ]

Copy link
Contributor

Deployed to https://pr-2095.aam-digital.net/

// If rules object is empty, everything is allowed
const userRules: DatabaseRule[] = rules
? this.getRulesForUser(rules)
: [{ action: "manage", subject: "all" }];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need the separate init with all permissions then? (line 37)

Copy link
Collaborator Author

@TheSlimvReal TheSlimvReal Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, in case no rules were found at all this is relevant. The change here was only for deleted entities as they appear in the changes feed.

@TheSlimvReal TheSlimvReal merged commit 8ae4bff into master Nov 23, 2023
@TheSlimvReal TheSlimvReal deleted the entity_changes_undefined branch November 23, 2023 09:19
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.26.1-master.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci aam-digital-ci added the released on @master managed by CI (semantic-release) label Nov 23, 2023
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.26.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci aam-digital-ci added the released managed by CI (semantic-release) label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released on @master managed by CI (semantic-release) released managed by CI (semantic-release)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants