From: Marcel Werk Date: Mon, 16 May 2022 14:54:01 +0000 (+0200) Subject: Email address was not visible in listing of group members X-Git-Tag: 5.5.0_Beta_3~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6aea8d4639774cbb21e79795961c59f8e2300b35;p=GitHub%2FWoltLab%2FWCF.git Email address was not visible in listing of group members --- diff --git a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php index 2fb9fa4a1d..d6d4ba8e55 100755 --- a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php @@ -115,6 +115,11 @@ class UserSearchForm extends UserOptionListForm $this->columns = $defaultColumns; + // add email column for authorized users + if (WCF::getSession()->getPermission('admin.user.canEditMailAddress')) { + \array_unshift($this->columns, 'email'); + } + // disable check for security token for GET requests $_POST['t'] = WCF::getSession()->getSecurityToken();