[geeklog-cvs] geeklog: Fixed wrong use of COM_isAnonUser in COM_getPermSQL (si...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Dec 22 05:51:38 EST 2008
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/7c7b50e5a41f
changeset: 6576:7c7b50e5a41f
user: Dirk Haun <dirk at haun-online.de>
date: Sun Dec 21 12:28:09 2008 +0100
description:
Fixed wrong use of COM_isAnonUser in COM_getPermSQL (since Geeklog 1.5.0)
diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
public_html/docs/history | 1 +
public_html/lib-common.php | 2 +-
diffs (23 lines):
diff -r 95c24df5898d -r 7c7b50e5a41f public_html/docs/history
--- a/public_html/docs/history Sun Dec 21 10:06:37 2008 +0100
+++ b/public_html/docs/history Sun Dec 21 12:28:09 2008 +0100
@@ -3,6 +3,7 @@
??? ??, 2008 (1.5.2)
------------
+- Fixed wrong use of COM_isAnonUser in COM_getPermSQL (since 1.5.0) [Dirk]
- When calling COM_getYearFormOptions with a $startoffset parameter, the list
of years was off by one (bug #0000783; patch provided by hiroron)
- Fixed updating feeds after changing topic permissions (bug #0000779) [Dirk]
diff -r 95c24df5898d -r 7c7b50e5a41f public_html/lib-common.php
--- a/public_html/lib-common.php Sun Dec 21 10:06:37 2008 +0100
+++ b/public_html/lib-common.php Sun Dec 21 12:28:09 2008 +0100
@@ -5385,7 +5385,7 @@
}
$UserGroups = array();
- if( COM_isAnonUser() || ( $uid == $_USER['uid'] ))
+ if(( empty( $_USER['uid'] ) && ( $uid == 1 )) || ( $uid == $_USER['uid'] ))
{
if( empty( $_GROUPS ))
{
More information about the geeklog-cvs
mailing list