Access for guests
nicdnepr opened this issue · comments
Hi. How can i allow access for anonymous users? I added code
array('allow', 'actions'=>array('REST.GET', 'REST.PUT', 'REST.POST', 'REST.DELETE', 'REST.OPTIONS'),
'users'=>array('*'),
),
but it's not work.
+1
@nicdnepr, @jossemarGT Just use the "post.filter.req.auth.user" to provide custom access using any logic that you would like:
$this->onRest('post.filter.req.auth.user', function($validation) {
return $validation; //Bool
});
Thanks!