From c3dea3bf65694320c9d98d73598ddb4752a006aa Mon Sep 17 00:00:00 2001 From: wjames5 Date: Tue, 6 May 2008 20:00:48 +0000 Subject: need to check global perm for comments post perm --- ajax_comments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ajax_comments.php') 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 @@ 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() ) { -- cgit v1.3