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

usersprovider: Allow admins to read disabled users by ID #4430

Closed
wants to merge 2 commits into from

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Dec 21, 2023

Users with the account management permission need to be able to lookup disabled users. (E.g. when listing the spaces of a user). This adds the "Accounts.ReadWrite" permission that is checked when looking up users.

This is supposed to fix the DeleteUser failure seen in: owncloud/ocis#8038 which was introduced with: #4426

As an alternative quickfix (if this one needs more thoughs) I've also posted revert PR here: #4431

Deny permission when there is not user in the Context, instead of panicking.
This is needed for unprotected API Call that might need to check permissions
(like e.g. GetUser).
Users with the account management permission need to be able to lookup
disabled users. (E.g. when listing the spaces of a user). This adds the
"Accounts.ReadWrite" permission that is checked when looking up users.
@rhafer rhafer marked this pull request as ready for review December 21, 2023 16:39
@rhafer rhafer requested review from labkode, glpatcern and a team as code owners December 21, 2023 16:39
rhafer added a commit to rhafer/ocis that referenced this pull request Dec 21, 2023
This is needed for the permission checks introduced in cs3org/reva#4430
rhafer added a commit to rhafer/ocis that referenced this pull request Dec 21, 2023
rhafer added a commit to rhafer/ocis that referenced this pull request Dec 21, 2023
This is needed for the permission checks introduced in cs3org/reva#4430
rhafer added a commit to rhafer/ocis that referenced this pull request Dec 21, 2023
@rhafer
Copy link
Contributor Author

rhafer commented Jan 17, 2024

I'll close this for now. Until we have sorted out the details of owncloud/ocis#8161

@rhafer rhafer closed this Jan 17, 2024
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.

None yet

1 participant