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

Show assigned collections on member edit #5556

Merged

Conversation

BlackDex
Copy link
Collaborator

@BlackDex BlackDex commented Feb 7, 2025

Because we were using the has_full_access() function we did not returned assigned collections for an owner/admin even if the did not have the access_all flag set. This commit will change that to use the access_all flag instead, and return assigned collections too.

While saving a member and having it assigned collections would still save those rights, and it was also visible in the collection management, it wasn't at the member it self. So, it did work, but was not visible.

Fixes #5554
Fixes #5555

Because we were using the `has_full_access()` function we did not returned assigned collections for an owner/admin even if the did not have the `access_all` flag set.
This commit will change that to use the `access_all` flag instead, and return assigned collections too.

While saving a member and having it assigned collections would still save those rights, and it was also visible in the collection management, it wasn't at the member it self.
So, it did work, but was not visible.

Fixes dani-garcia#5554
Fixes dani-garcia#5555

Signed-off-by: BlackDex <[email protected]>
@BlackDex BlackDex requested a review from dani-garcia February 7, 2025 08:40
@dani-garcia dani-garcia merged commit 1f868b8 into dani-garcia:main Feb 7, 2025
5 checks passed
@BlackDex BlackDex deleted the show-collections-on-member-edit branch February 7, 2025 21:47
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.

Permissions completely broken for roles Owner and Administrator
2 participants