[geeklog-cvs] geeklog-1.3/public_html comment.php,1.67,1.68
vinny at iowaoutdoors.org
vinny at iowaoutdoors.org
Tue Jun 29 20:04:43 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv20471
Modified Files:
comment.php
Log Message:
Added Topic permission check for view mode
Index: comment.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/comment.php,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** comment.php 17 Jun 2004 11:12:45 -0000 1.67
--- comment.php 30 Jun 2004 00:04:37 -0000 1.68
***************
*** 693,697 ****
$allowed = 1;
if ($type == 'article') {
! $result = DB_query ("SELECT COUNT(*) AS count FROM {$_TABLES['stories']} WHERE (sid = '$sid') AND (draft_flag = 0) AND (date <= NOW())" . COM_getPermSQL ('AND'));
$A = DB_fetchArray ($result);
$allowed = $A['count'];
--- 693,697 ----
$allowed = 1;
if ($type == 'article') {
! $result = DB_query ("SELECT COUNT(*) AS count FROM {$_TABLES['stories']} WHERE (sid = '$sid') AND (draft_flag = 0) AND (date <= NOW())" . COM_getPermSQL ('AND') . COM_getTopicSQL ('AND'));
$A = DB_fetchArray ($result);
$allowed = $A['count'];
More information about the geeklog-cvs
mailing list