From caeb660f29d13db62d5381c262aa03e12f201ea2 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Sun, 14 Jun 2020 19:50:09 +0200 Subject: Add a way to disable/enable users (#3056) If you want to block users without deleting their account, you can now disable them from the interface. --- app/views/user/details.phtml | 9 ++++++++- app/views/user/manage.phtml | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/user/details.phtml b/app/views/user/details.phtml index 8b3cc3a44..b93cd4d72 100644 --- a/app/views/user/details.phtml +++ b/app/views/user/details.phtml @@ -1,6 +1,8 @@ partial('aside_configure'); ?> +details['is_default']; ?> details['is_admin']; ?> +details['enabled']; ?>
@@ -68,11 +70,16 @@ - isDefaultUser): ?> + + + + + +
diff --git a/app/views/user/manage.phtml b/app/views/user/manage.phtml index 5c4e1e128..cf053d918 100644 --- a/app/views/user/manage.phtml +++ b/app/views/user/manage.phtml @@ -71,6 +71,7 @@ + @@ -82,8 +83,9 @@ users as $username => $values) : ?> - + class="default-user"> + -- cgit v1.2.3