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

fixes edge case in comparison check #306

Merged
merged 6 commits into from
Aug 14, 2023
Merged

Conversation

fanatic75
Copy link
Contributor

This PR fixes the edge case of comparing nested doc ID only if the nested level is less than MAX DEPTH allowed.

tests/Database/Base.php Outdated Show resolved Hide resolved
tests/Database/Base.php Show resolved Hide resolved
Comment on lines +3397 to +3402
static::getDatabase()->updateCollection('level3', [
Permission::read(Role::any()),
Permission::create(Role::any()),
Permission::update(Role::any()),
Permission::delete(Role::any()),
], false);
Copy link
Member

Choose a reason for hiding this comment

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

You shouldn't be able to do this without update permission unless using Auth::skip 🤔 I'll address in a separate PR

@abnegate abnegate merged commit 9ff69a9 into main Aug 14, 2023
3 checks passed
@abnegate abnegate deleted the fix-5404-check-related-doc-id branch November 23, 2023 01:52
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.

2 participants