Disabled 'Never' setting for administrator permissions
authorAlexander Ebert <ebert@woltlab.com>
Sun, 9 Oct 2016 19:07:53 +0000 (21:07 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 9 Oct 2016 19:07:53 +0000 (21:07 +0200)
wcfsetup/install/files/acp/templates/userGroupBooleanOptionType.tpl

index bdbf79db1a5270e2d1962942db34dcde642c346b..8f04b0e63d1eddae743b515cb6790fbe18e1f629 100644 (file)
@@ -7,7 +7,7 @@
                <input type="radio" id="{$option->optionName}_no"{if $value == 0} checked{/if} name="values[{$option->optionName}]" value="0"{if $disableOptions || $enableOptions} class="jsEnablesOptions" data-is-boolean="true" data-disable-options="[ {@$disableOptions}]" data-enable-options="[ {@$enableOptions}]"{/if}>
                <label for="{$option->optionName}_no" class="red"><span class="icon icon16 fa-times"></span> {lang}wcf.acp.option.type.boolean.no{/lang}</label>
        </li>
-       {if $group === null || !$group->isEveryone()}
+       {if $option->optionName|mb_strpos:'admin.' !== 0 && ($group === null || !$group->isEveryone())}
                <li>
                        <input type="radio" id="{$option->optionName}_never"{if $value == -1} checked{/if} name="values[{$option->optionName}]" value="-1"{if $disableOptions || $enableOptions} class="jsEnablesOptions" data-is-boolean="true" data-disable-options="[ {@$disableOptions}]" data-enable-options="[ {@$enableOptions}]"{/if}>
                        <label for="{$option->optionName}_never" class="yellow"><span class="icon icon16 fa-ban"></span> {lang}wcf.acp.option.type.boolean.never{/lang}</label>