[geeklog-cvs] geeklog-1.3/public_html article.php,1.35,1.36
dhaun at geeklog.net
dhaun at geeklog.net
Tue Oct 14 14:38:28 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv29523
Modified Files:
article.php
Log Message:
Need to check for story.edit permissions before presenting the "delete comment" link to anyone ...
Index: article.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/article.php,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** article.php 14 Sep 2003 09:07:54 -0000 1.35
--- article.php 14 Oct 2003 18:38:26 -0000 1.36
***************
*** 184,188 ****
// Display the comments, if there are any ..
if ($A['commentcode'] >= 0) {
! $delete_option = ($access == 3 ? true : false);
$story_template->set_var ('commentbar',
COM_userComments ($story, $A['title'], 'article',
--- 184,189 ----
// Display the comments, if there are any ..
if ($A['commentcode'] >= 0) {
! $delete_option = (SEC_hasRights('story.edit') && ($access == 3)
! ? true : false);
$story_template->set_var ('commentbar',
COM_userComments ($story, $A['title'], 'article',
More information about the geeklog-cvs
mailing list