IMPORTANT: parent::handlePost() in NewnoticeAction

otherwise we don't do csrf checking etc...
This commit is contained in:
Mikael Nordfeldth 2013-09-01 21:45:10 +02:00
parent 0612e5ec87
commit 89b10666bb

View File

@ -101,6 +101,8 @@ class NewnoticeAction extends FormAction
*/
protected function handlePost()
{
parent::handlePost();
assert($this->scoped); // XXX: maybe an error instead...
$user = $this->scoped->getUser();
$content = $this->trimmed('status_textarea');