mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 17:23:04 +03:00
[PR #32] [MERGED] Support listing and deleting users from collection #3907
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/32
Author: @mprasil
Created: 5/29/2018
Status: ✅ Merged
Merged: 5/30/2018
Merged by: @dani-garcia
Base:
master← Head:collection_users📝 Commits (2)
62be23bSupport listing and deleting users from collection46f3b22Removed unnecessary checks, simplified the code a bit📊 Changes
4 files changed (+80 additions, -26 deletions)
View changed files
📝
src/api/core/mod.rs(+1 -0)📝
src/api/core/organizations.rs(+43 -18)📝
src/db/models/collection.rs(+20 -8)📝
src/db/models/organization.rs(+16 -0)📄 Description
This implements
/organizations/{org_id}/collections/{coll_id}/usersfor #5, it also adds/organizations/<org_id>/collections/<col_id>/delete-user/<org_user_id>that is used for deleting individual users from collection.This also improves
CollectionUser::delete()to work onselfrather than requesting IDs for lookup. It also returnsQueryResultthat is now checked. (#6)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.