mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[PR #1247] [MERGED] Implement admin ability to enable/disable users #2928
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#2928
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/1247
Author: @janost
Created: 11/30/2020
Status: ✅ Merged
Merged: 12/8/2020
Merged by: @dani-garcia
Base:
master← Head:admin-disable-user📝 Commits (2)
043aa27Implement admin ability to enable/disable usersb32f445Merge branch 'master' into admin-disable-user📊 Changes
13 files changed (+63 additions, -0 deletions)
View changed files
➕
migrations/mysql/2020-11-30-224000_add_user_enabled/down.sql(+0 -0)➕
migrations/mysql/2020-11-30-224000_add_user_enabled/up.sql(+1 -0)➕
migrations/postgresql/2020-11-30-224000_add_user_enabled/down.sql(+0 -0)➕
migrations/postgresql/2020-11-30-224000_add_user_enabled/up.sql(+1 -0)➕
migrations/sqlite/2020-11-30-224000_add_user_enabled/down.sql(+0 -0)➕
migrations/sqlite/2020-11-30-224000_add_user_enabled/up.sql(+1 -0)📝
src/api/admin.rs(+21 -0)📝
src/api/identity.rs(+8 -0)📝
src/db/models/user.rs(+2 -0)📝
src/db/schemas/mysql/schema.rs(+1 -0)📝
src/db/schemas/postgresql/schema.rs(+1 -0)📝
src/db/schemas/sqlite/schema.rs(+1 -0)📝
src/static/templates/admin/users.hbs(+26 -0)📄 Description
Feature request from #246.
This change implements the following:
userstable:enabledwith default value oftrue./admin/users/<uuid>/enable/admin/users/<uuid>/disableDisabledbadge and enable/disable user links on admin page🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.