diff options
| author | wjames5 <will@tekimaki.com> | 2008-05-06 20:00:48 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-05-06 20:00:48 +0000 |
| commit | c3dea3bf65694320c9d98d73598ddb4752a006aa (patch) | |
| tree | ef49c53d9f8b033eb7c6a2659367e2c38496c68d /ajax_comments.php | |
| parent | 291594022eb06faaef4a77f3c3b213c5aa87661a (diff) | |
| download | liberty-c3dea3bf65694320c9d98d73598ddb4752a006aa.tar.gz liberty-c3dea3bf65694320c9d98d73598ddb4752a006aa.tar.bz2 liberty-c3dea3bf65694320c9d98d73598ddb4752a006aa.zip | |
need to check global perm for comments post perm
Diffstat (limited to 'ajax_comments.php')
| -rw-r--r-- | ajax_comments.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ajax_comments.php b/ajax_comments.php index 778dca8..7870e6a 100644 --- a/ajax_comments.php +++ b/ajax_comments.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_liberty/ajax_comments.php,v 1.7 2008/04/28 21:14:37 wjames5 Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/ajax_comments.php,v 1.8 2008/05/06 20:00:48 wjames5 Exp $ * @package liberty * @subpackage functions */ @@ -14,7 +14,7 @@ $staticContent = new LibertyContent(); $gContent = $staticContent->getLibertyObject( $_REQUEST['parent_id'], (!empty($_REQUEST['parent_guid'])?$_REQUEST['parent_guid']:NULL) ); $XMLContent = ""; -if( !$gContent->hasUserPermission( 'p_liberty_post_comments' )) { +if( !$gContent->hasUserPermission( 'p_liberty_post_comments', TRUE, TRUE)) { $statusCode = 401; $XMLContent = tra( "You do not have the required permissions to post new comments" ); } elseif( $gContent->isCommentable() ) { |
