Fix incorrect comparison in userGroupBooleanOptionType.tpl
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 23 Aug 2023 07:49:05 +0000 (09:49 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 23 Aug 2023 07:49:50 +0000 (09:49 +0200)
This regressed in 149cdf58f476ea36ad9757a0c28aee4b5ed7070d.

see https://www.woltlab.com/community/thread/301313-benutzergruppenrechte-berechtigungsstufe-nie-wird-nicht-angezeigt/

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

index c356c56ef8d46ba61aa07f25d14250a5c7935a59..0444dba6348b97cf491c19e5e9d53182c2d2c487 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">{icon name='xmark'} {lang}wcf.acp.option.type.boolean.no{/lang}</label>
        </li>
-       {if $option->optionName|str_starts_with:'admin.' && ($group === null || (!$group->isEveryone() && !$group->isUsers()))}
+       {if !$option->optionName|str_starts_with:'admin.' && ($group === null || (!$group->isEveryone() && !$group->isUsers()))}
                <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">{icon name='ban'} {lang}wcf.acp.option.type.boolean.never{/lang}</label>