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

No Exception when no change in update document function #295

Merged

Conversation

fanatic75
Copy link
Contributor

@fanatic75 fanatic75 commented Jul 18, 2023

We should not throw authorization exception when there is no change in update document coming document.
This is required for Relationships as we need to allow users to update document having related collection with no permission.

Part fix appwrite/appwrite#5404

src/Database/Database.php Outdated Show resolved Hide resolved
src/Database/Database.php Outdated Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
Co-authored-by: Steven <[email protected]>
Copy link
Contributor

@stnguyen90 stnguyen90 left a comment

Choose a reason for hiding this comment

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

LGTM. I'll defer to @abnegate for another set of eyes.

@fanatic75 fanatic75 requested a review from fogelito July 25, 2023 10:28
src/Database/Database.php Outdated Show resolved Hide resolved
src/Database/Database.php Outdated Show resolved Hide resolved
tests/Database/Base.php Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
@fanatic75
Copy link
Contributor Author

@abnegate can you please re-review this

@fanatic75 fanatic75 requested a review from abnegate July 26, 2023 05:35
@abnegate abnegate merged commit a9f7060 into main Jul 26, 2023
3 checks passed
@abnegate abnegate deleted the fix-no-authorization-exception-no-change-update-document branch November 23, 2023 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug Report: Nested update, permission issue
4 participants