mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #2698] [MERGED] Add Org user revoke feature #3130
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#3130
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/2698
Author: @BlackDex
Created: 8/20/2022
Status: ✅ Merged
Merged: 9/4/2022
Merged by: @dani-garcia
Base:
main← Head:org-user-revoke-access📝 Commits (1)
1722742Add Org user revoke feature📊 Changes
9 files changed (+487 additions, -149 deletions)
View changed files
📝
src/api/admin.rs(+16 -5)📝
src/api/core/ciphers.rs(+1 -1)📝
src/api/core/emergency_access.rs(+3 -3)📝
src/api/core/organizations.rs(+238 -80)📝
src/api/core/sends.rs(+3 -2)📝
src/db/models/mod.rs(+1 -1)📝
src/db/models/org_policy.rs(+125 -25)📝
src/db/models/organization.rs(+95 -27)📝
src/db/models/user.rs(+5 -5)📄 Description
This PR adds a the new v2022.8.x revoke feature which allows an
organization owner or admin to revoke access for one or more users.
This PR also fixes several permissions and policy checks which were faulty.
NOTE:
Please look at this PR carefully, I think i have done all the tests regarding the changed policy validation. But I could have missed a situation of course.
Also this PR is needed to use the v2022.8.x version of the web-vault: https://github.com/dani-garcia/bw_web_builds/pull/77
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.