Email address was not visible in listing of group members
authorMarcel Werk <burntime@woltlab.com>
Mon, 16 May 2022 14:54:01 +0000 (16:54 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 16 May 2022 14:54:01 +0000 (16:54 +0200)
wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php

index 2fb9fa4a1d7cbcf8d3a34e81150b18a940a5aec3..d6d4ba8e5504a0e412ed713fcb760f5dfe73ffde 100755 (executable)
@@ -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();