Boolean user group options now support 'Never'
authorAlexander Ebert <ebert@woltlab.com>
Sun, 7 Jun 2015 19:30:10 +0000 (21:30 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 7 Jun 2015 19:35:32 +0000 (21:35 +0200)
commit04488ea871de26ebbfd875c56a2aebcc5ab51b89
tree46289b5133a684bec46b253eee916698e0c2d79f
parent6c90f76519f55b90f00bf82035b532b42db3f959
Boolean user group options now support 'Never'

The boolean option type allowed only for a simple true/false, which is sometimes quite difficult to work with. For example revoking group permissions is usually accomplished by fiddling with all groups.

The 'Never' option solves this by using the unique value '-1' to revoke a permission regardless how often it was granted.
12 files changed:
wcfsetup/install/files/acp/templates/userGroupBooleanOptionType.tpl [new file with mode: 0644]
wcfsetup/install/files/js/WCF.js
wcfsetup/install/files/lib/data/user/group/UserGroup.class.php
wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php
wcfsetup/install/files/lib/system/option/OptionHandler.class.php
wcfsetup/install/files/lib/system/option/user/group/BooleanUserGroupOptionType.class.php
wcfsetup/install/files/lib/system/option/user/group/IUserGroupGroupOptionType.class.php [new file with mode: 0644]
wcfsetup/install/files/lib/system/option/user/group/TUserGroupOptionType.class.php [new file with mode: 0644]
wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php
wcfsetup/install/files/style/form.less
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml