mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: fix post in the front end when not logged in
This commit is contained in:
parent
2936024e8d
commit
df544e01f2
@ -173,7 +173,7 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
||||
'date',
|
||||
'metaweblog',
|
||||
'postblog' => 'BLOGMANAGEMENT',
|
||||
'post' => 'BLOGMANAGEMENT',
|
||||
'post',
|
||||
'BlogEntryForm' => 'BLOGMANAGEMENT',
|
||||
);
|
||||
|
||||
@ -299,7 +299,7 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
||||
}
|
||||
|
||||
$blogentry->Status = "Published";
|
||||
$blogentry->writeToStage("Stage");
|
||||
$blogentry->writeToStage("Live");
|
||||
$blogentry->publish("Stage", "Live");
|
||||
|
||||
$this->redirect($this->Link());
|
||||
|
Loading…
Reference in New Issue
Block a user