From dbe622adc1d8a200e50a3201753f74fcb80f8287 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 24 Mar 2014 19:48:29 +0100 Subject: [PATCH] Fixes some issues --- com.woltlab.wcf/templates/user.tpl | 4 ++-- wcfsetup/install/files/js/WCF.User.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/com.woltlab.wcf/templates/user.tpl b/com.woltlab.wcf/templates/user.tpl index a06771db0f..fc1323ec1e 100644 --- a/com.woltlab.wcf/templates/user.tpl +++ b/com.woltlab.wcf/templates/user.tpl @@ -79,7 +79,7 @@ }); {/if} - {if $isAccessible} + {if $isAccessible && $__wcf->user->userID != $user->userID} WCF.Language.addObject({ 'wcf.user.ban': '{lang}wcf.user.ban{/lang}', 'wcf.user.ban.confirmMessage': '{lang}wcf.user.ban.confirmMessage{/lang}', @@ -179,7 +179,7 @@ {event name='buttons'} - {if $__wcf->session->getPermission('admin.user.canBanUser') || $__wcf->session->getPermission('admin.user.canDisableAvatar') || $__wcf->session->getPermission('admin.user.canDisableSignature') || ($__wcf->session->getPermission('admin.general.canUseAcp') && $__wcf->session->getPermission('admin.user.canEditUser'))} + {if $isAccessible && $__wcf->user->userID != $user->userID && ($__wcf->session->getPermission('admin.user.canBanUser') || $__wcf->session->getPermission('admin.user.canDisableAvatar') || $__wcf->session->getPermission('admin.user.canDisableSignature') || ($__wcf->session->getPermission('admin.general.canUseAcp') && $__wcf->session->getPermission('admin.user.canEditUser')))}