mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 09:13:02 +03:00
[PR #864] [MERGED] Do not disable invitations via admin API #3617
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/864
Author: @mprasil
Created: 2/16/2020
Status: ✅ Merged
Merged: 2/17/2020
Merged by: @dani-garcia
Base:
master← Head:admin-invitation📝 Commits (2)
0a72c4bDo not disable invitations via admin API0323342Remove check from Invitation:take()📊 Changes
2 files changed (+4 additions, -9 deletions)
View changed files
📝
src/api/admin.rs(+0 -4)📝
src/db/models/user.rs(+4 -5)📄 Description
This was brought up today:
https://github.com/dani-garcia/bitwarden_rs/issues/752#issuecomment-586715073
I don't think it makes much sense in checking whether admin has the
right to send invitation as admin can change the setting anyway.
Removing the condition allows users to forbid regular users from
inviting new users to server while still preserving the option to do so
via the admin API.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.