[geeklog-cvs] geeklog: Fixes bug #0001429. Profile of users with status not AC...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Wed Mar 7 15:58:06 EST 2012
changeset 8512:451e43851b4e
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/451e43851b4e
user: Dhruv Goel <dhruv.goel92 at gmail.com>
date: Thu Mar 08 02:09:01 2012 +0530
description:
Fixes bug #0001429. Profile of users with status not ACTIVE will be displayed only to admins. Otherwise the user is redirected to site's index page.
diffstat:
system/lib-user.php | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 99c90e9d36a0 -r 451e43851b4e system/lib-user.php
--- a/system/lib-user.php Wed Mar 07 12:33:17 2012 -0500
+++ b/system/lib-user.php Thu Mar 08 02:09:01 2012 +0530
@@ -867,6 +867,10 @@
COM_displayMessageAndAbort(30, '', 403, 'Forbidden');
}
+ if ($A['status'] != USER_ACCOUNT_ACTIVE && !SEC_hasRights('user.edit')) {
+ return COM_refresh($_CONF['site_url'] . '/index.php');
+ }
+
$display_name = COM_getDisplayName($uid, $A['username'], $A['fullname']);
$display_name = htmlspecialchars($display_name);
More information about the geeklog-cvs
mailing list