Uh oh!
There was an error while loading. Please reload this page.
Fix crud operations permission in update relationships - #300
Conversation
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…x-crud-operations-permission-in-update-relationships
stnguyen90
left a comment
There was a problem hiding this comment.
Is this ready for review? Also, it looks like there are merge conflicts.
…x-crud-operations-permission-in-update-relationships
abnegate
commented
Aug 18, 2023
Closing as for now we don't want to allow relating to documents without read permission |
fanatic75
commented
Aug 18, 2023
@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. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.