mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 01:45:56 -05:00
[PR #1247] [MERGED] Implement admin ability to enable/disable users #2792
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/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.