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

Permissions: fix empty permissions #10236

Merged
merged 1 commit into from Dec 2, 2021
Merged

Conversation

joselcvarela
Copy link
Member

@joselcvarela joselcvarela commented Dec 2, 2021

Fix when permissions are empty or null


Edit:
After pull main branch into before this PR, my non-admin user was not able to login into the app. This happened because null was being inserted into filter.
Then in applyQuery https://github.com/directus/directus/blob/main/api/src/utils/apply-query.ts#L161
an error was thrown because Object.keys(null) which is not correct.

@rijkvanzanten rijkvanzanten added this to the v9.1.3 milestone Dec 2, 2021
@rijkvanzanten rijkvanzanten self-assigned this Dec 2, 2021
@rijkvanzanten rijkvanzanten enabled auto-merge (squash) December 2, 2021 19:42
@rijkvanzanten rijkvanzanten merged commit 7966b4e into main Dec 2, 2021
@rijkvanzanten rijkvanzanten deleted the fix/empty-object-permissions branch December 2, 2021 19:49
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants