});
{/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}',
{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')))}
<li class="dropdown">
{* todo: better icon? *}
<a href="{link controller='UserEdit' object=$user isACP=true}{/link}" class="button jsTooltip jsUserInlineEditor" title="{lang}wcf.user.moderate{/lang}"><span class="icon icon16 icon-lock"></span> <span class="invisible">{lang}{lang}wcf.acp.user.edit{/lang}{/lang}</span></a>
_updateState: function(data) {
this._notification.show();
- for (var $index in this._updateData) {
- var $data = this._updateData[$index];
+ for (var $i = 0, $length = this._updateData.length; $i < $length; $i++) {
+ var $data = this._updateData[$i];
var $element = $('#' + $data.elementID);
for (var $property in $data.data) {