mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #170] [MERGED] Fix editing users in Organization #2649
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#2649
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/170
Author: @mprasil
Created: 9/4/2018
Status: ✅ Merged
Merged: 9/4/2018
Merged by: @dani-garcia
Base:
master← Head:org-user-edit📝 Commits (3)
049aa33Fix editing users in Organizationdb111aeCheck properly the user membership in Organizationc58682eFix the logic in user edditing📊 Changes
2 files changed (+35 additions, -33 deletions)
View changed files
📝
src/api/core/organizations.rs(+28 -33)📝
src/db/models/organization.rs(+7 -0)📄 Description
This fixes multiple issues:
Make sure the user is actually member of organization we're managing.
Fix #163 by allowing admin users to edit other admin users.
The implemented change allows admin users to change collection access for other admin users and themselves. Admin user is however not allowed to promote other users to Admin type or drop Admin privileges for other admin users.
Change
user_iddynamic parameters toorg_user_idas this better reflects the actual information that's provided.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.