includes/comment.php
changeset 74 68469a95658d
parent 73 0a74676a2f2f
child 78 4df25dfdde63
equal deleted inserted replaced
73:0a74676a2f2f 74:68469a95658d
   231         $errors = Array();
   231         $errors = Array();
   232         
   232         
   233         // Authorization
   233         // Authorization
   234         // Like the rest of the ACL system, this call is a one-stop check for ALL ACL entries.
   234         // Like the rest of the ACL system, this call is a one-stop check for ALL ACL entries.
   235         if ( !$this->perms->get_permissions('post_comments') )
   235         if ( !$this->perms->get_permissions('post_comments') )
   236           $errors[] = 'An ACL entry is preventing the comment from being posted.';
   236           $errors[] = 'The site security policy prevents your user account from posting comments;';
   237         
   237         
   238         // Guest authorization
   238         // Guest authorization
   239         if ( getConfig('comments_need_login') == '2' && !$session->user_logged_in )
   239         if ( getConfig('comments_need_login') == '2' && !$session->user_logged_in )
   240           $errors[] = 'You need to log in before posting comments.';
   240           $errors[] = 'You need to log in before posting comments.';
   241         
   241