Removed self-ban ability
authorSascha Greuel <sascha@softcreatr.de>
Tue, 25 Jun 2013 10:14:08 +0000 (12:14 +0200)
committerSascha Greuel <sascha@softcreatr.de>
Tue, 25 Jun 2013 10:14:08 +0000 (12:14 +0200)
See
http://beta.woltlab.com/index.php/Thread/2251-Admistrator-kann-sich-selbst-sperren-gewollt/

wcfsetup/install/files/acp/templates/userAdd.tpl

index aff7d9b5f7be602683daf4696fca328a97babada..8d2d01c2d4da9a224f349a2d2f446920c8b5967b 100644 (file)
                                </fieldset>
                        {/if}
                        
-                       {if $action == 'edit' && $__wcf->session->getPermission('admin.user.canBanUser')}
+                       {if $action == 'edit' && $__wcf->session->getPermission('admin.user.canBanUser') && $__wcf->user->userID != $userID}
                                <fieldset>
                                        <legend>{lang}wcf.acp.user.banUser{/lang}</legend>