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 patching language settings #8182

Merged
merged 2 commits into from
Jan 12, 2024
Merged

Conversation

kobergj
Copy link
Collaborator

@kobergj kobergj commented Jan 11, 2024

Fixes patching of user language when ldap backend is read-only

Fixes https://github.com/owncloud/enterprise/issues/6235

Signed-off-by: jkoberg <[email protected]>
rhafer
rhafer previously requested changes Jan 11, 2024
u.PreferredLanguage = preferredLanguage
g.patchUserResponse(w, r, u, nameOrID, features)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not a new issue but I guess the events should always contain the userid (never the name) and nameOrID can indeed be a username. We should probably use u.GetID() for the event. I guess you can just leave out the nameOrID parameter. And have fill the id from the user object in patchUserResponse.

Looks good to me otherwise.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point 👍 Did as requested.

Signed-off-by: jkoberg <[email protected]>
Copy link

sonarcloud bot commented Jan 11, 2024

@kobergj kobergj merged commit 0e8ce69 into owncloud:master Jan 12, 2024
4 checks passed
@kobergj kobergj deleted the FixPatchingLanguage branch January 12, 2024 09:51
ownclouders pushed a commit that referenced this pull request Jan 12, 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

3 participants