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

Fix tag permissions #3368

Merged
merged 3 commits into from
Sep 2, 2024
Merged

Fix tag permissions #3368

merged 3 commits into from
Sep 2, 2024

Conversation

nichwall
Copy link
Contributor

@nichwall nichwall commented Sep 2, 2024

Fixes #3365

This PR updates the default User model to include selectedTagsNotAccessible on the default user creation. The patch request for /api/users/{id} is also updated to compare the payload against the default permissions to allow for values to be updated by clients on existing users which do not have the key in the permissions array. I'm not sure if that's the best way to do this, but figured it was more secure to validate against the default properties instead of allowing arbitrary keys to be created by a client.

This does not go through and update existing users which do not have selectedTagsNotAccessible.

@advplyr
Copy link
Owner

advplyr commented Sep 2, 2024

Thanks!

@advplyr advplyr merged commit f194c5b into advplyr:master Sep 2, 2024
5 checks passed
@nichwall nichwall deleted the fix_tag_permissions branch September 2, 2024 21:27
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]: Tag Invert No Longer Sticks
2 participants