-
Notifications
You must be signed in to change notification settings - Fork 49
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 crud operations permission in update relationships #300
Fix crud operations permission in update relationships #300
Conversation
fanatic75
commented
Jul 31, 2023
•
edited
Loading
edited
- Skipping authorization for crud operations which are integral parts of logic but not done by the user
- Added a test case.
Skipping authorization for the db calls that are only made for updating document logic but not required by user. Fixes the bug in comparing new document and old document in updateDocument method. Adds a test case to verify.
…x-crud-operations-permission-in-update-relationships
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ready for review? Also, it looks like there are merge conflicts.
…x-crud-operations-permission-in-update-relationships
Closing as for now we don't want to allow relating to documents without read permission |
@abnegate Let's consider this scenario: Level 1 has a one-to-many relationship with Level 2. If we create new documents in Level 2 using Level 1, we should not need update permission in Level 2. However, due to updating old documents, we are unable to create new documents without update permission. This pull request resolves this issue. |