mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-01 11:19:52 +03:00
[PR #170] [MERGED] Fix editing users in Organization #2622
Reference in New Issue
Block a user
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.