CakeDC/comments

Allow anonymous comment

Closed this issue · 3 comments

$this->CommentWidget->options(
array(
'target' => '#comments',
'ajaxAction' => 'comments',
'allowAnonymousComment' => true
)
);

i used this code, but when pressing the "ADD COMMENT" button the login action of users plugin will appear!

skie commented

Did you allow comments action for auth system itself?

Auth is turned off

Have you read the readme.md?

allowAnonymousComment - Flag to allow anonymous user make comments. By default it is false.

Set this CommentsComponent setting to true.

I'll reopen the ticket if you tell me your exact CakePHP version (commit id) and plugin version (commit id) and show your code, how the component is used and the beforeFilter().