Update of /cvsroot/phpslash/phpslash-ft/public_html
In directory usw-pr-cvs1:/tmp/cvs-serv18487/phpslash-ft/public_html
Modified Files:
article.php3
Log Message:
newStory auth checks
Index: article.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/article.php3,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** article.php3 11 Feb 2002 18:24:56 -0000 1.59
--- article.php3 13 Mar 2002 19:14:20 -0000 1.60
***************
*** 99,102 ****
--- 99,108 ----
$related = $story->getRelated($story_id);
+ if($perm->have_perm('story')) {
+ if( ($auth->auth['uid'] == $story->story_ary['user_id']) OR
+ ($perm->have_perm('root'))) {
+ $related .= "<a href=\"".$_PSL['adminurl']."/storyAdmin.php3?submit=edit&story_id=".$story_id."\">".pslgetText('Modify Story')."</a>";
+ }
+ }
$arrows = $story->getNextPrev($story_id);
|