1
I would like to hack the following part of the userinfo.php code to include a specific group in addition to the Admin:
if ($thisUser->getVar('user_viewemail') == 1) {
$email = $thisUser->getVar('email', 'E');
} else {
$email = "";
if (is_object($xoopsUser)) {
// All admins will be allowed to see emails, even those that are not allowed to edit users (I think it's ok like this)
if ($xoopsUserIsAdmin || ($xoopsUser->getVar("uid") == $thisUser->getVar("uid"))) {
$email = $thisUser->getVar('email', 'E');
}
}
}
I don't want to create another admin group just for this.
Would someone help me add a group to this? Would I be using groupid?
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]