Preventing users from removing full access from the last admin group
authorAlexander Ebert <ebert@woltlab.com>
Sun, 8 Feb 2015 19:18:22 +0000 (20:18 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 8 Feb 2015 19:18:22 +0000 (20:18 +0100)
commitd3f5efe99b4f2e4906d692722740dae46ddeffef
tree28f31dbd42ef1a8ff62c3701a7f296cd5c8bea4c
parent7ff7c082b86f44d2ce80cfe4606f6dcc22fa2de5
Preventing users from removing full access from the last admin group

There is no really setting for admin groups, but groups with the ability to edit all groups (including their own) are regarded as admin group. This is a special case because they can set any permissions they want regardless which permissions they currently have.

This change prevents users from stripping this privilege from the last remaining "admin group". In other words: Prevents users from doing things they will regret pretty quickly.
wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml