From 15470df4d242ab1dd2651e558bbba52ac10f9e31 Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Tue, 25 Jun 2013 12:14:08 +0200 Subject: [PATCH] Removed self-ban ability See http://beta.woltlab.com/index.php/Thread/2251-Admistrator-kann-sich-selbst-sperren-gewollt/ --- wcfsetup/install/files/acp/templates/userAdd.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/templates/userAdd.tpl b/wcfsetup/install/files/acp/templates/userAdd.tpl index aff7d9b5f7..8d2d01c2d4 100644 --- a/wcfsetup/install/files/acp/templates/userAdd.tpl +++ b/wcfsetup/install/files/acp/templates/userAdd.tpl @@ -163,7 +163,7 @@ {/if} - {if $action == 'edit' && $__wcf->session->getPermission('admin.user.canBanUser')} + {if $action == 'edit' && $__wcf->session->getPermission('admin.user.canBanUser') && $__wcf->user->userID != $userID}
{lang}wcf.acp.user.banUser{/lang} -- 2.20.1