From: vladimir c. <ch...@us...> - 2002-04-18 12:43:27
|
Update of /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14 In directory usw-pr-cvs1:/tmp/cvs-serv11454 Modified Files: editpost.php Log Message: fix for user was unable to edit his own post Index: editpost.php =================================================================== RCS file: /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14/editpost.php,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** editpost.php 15 Apr 2002 14:45:18 -0000 1.57 --- editpost.php 18 Apr 2002 12:43:23 -0000 1.58 *************** *** 74,80 **** $date = date('Y-m-d H:i'); $pn_uid = pnSessionGetVar('uid'); if (!($pn_uid == $poster_id) ! || pnSecAuthAction(0, 'phpBB_14::Forum', "$row[forum_name]::", ACCESS_MODERATE) ) { error_die(_PHPBB_PERMDENY); --- 74,81 ---- $date = date('Y-m-d H:i'); $pn_uid = pnSessionGetVar('uid'); + $forum_name = get_forum_name($forum_id); if (!($pn_uid == $poster_id) ! && !pnSecAuthAction(0, 'phpBB_14::Forum', "$forum_name::", ACCESS_MODERATE) ) { error_die(_PHPBB_PERMDENY); *************** *** 82,86 **** if (is_boardlocked($topic_id) ! && !pnSecAuthAction(0, 'phpBB_14::Forum', "$row[forum_name]::", ACCESS_MODERATE) ) { error_die ("sorry topic has been locked"); --- 83,87 ---- if (is_boardlocked($topic_id) ! && !pnSecAuthAction(0, 'phpBB_14::Forum', "$forum_name::", ACCESS_MODERATE) ) { error_die ("sorry topic has been locked"); |