Closed #52 - fixes for anonymous accounts

- Anonymous account is no longer created when commenting/uploading
- Anonymous users can now switch safety, if it's available
- Anonymous users can delete their own posts
- Refurbished session and logging in/out mechanism
- Possible fixes for registration/activation/account deletion issues
This commit is contained in:
Marcin Kurczewski
2013-10-27 20:39:32 +01:00
parent f726690ea3
commit b55a8f1dce
10 changed files with 75 additions and 67 deletions

View File

@ -72,7 +72,8 @@ class CommentController
$text = Model_Comment::validateText($text);
$comment = R::dispense('comment');
$comment->post = $post;
$comment->commenter = $this->context->user;
if ($this->context->loggedIn)
$comment->commenter = $this->context->user;
$comment->comment_date = time();
$comment->text = $text;
if (InputHelper::get('sender') != 'preview')