mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge branch '0.2' into 0.3
This commit is contained in:
commit
5e05ac92e5
@ -131,7 +131,7 @@ class BlogHolder extends BlogTree implements PermissionProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class BlogHolder_Controller extends BlogTree_Controller {
|
class BlogHolder_Controller extends BlogTree_Controller {
|
||||||
|
|
||||||
static $allowed_actions = array(
|
static $allowed_actions = array(
|
||||||
'index',
|
'index',
|
||||||
'tag',
|
'tag',
|
||||||
@ -139,7 +139,7 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
|||||||
'post' => 'BLOGMANAGEMENT',
|
'post' => 'BLOGMANAGEMENT',
|
||||||
'BlogEntryForm' => 'BLOGMANAGEMENT',
|
'BlogEntryForm' => 'BLOGMANAGEMENT',
|
||||||
);
|
);
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
parent::init();
|
parent::init();
|
||||||
Requirements::themedCSS("bbcodehelp");
|
Requirements::themedCSS("bbcodehelp");
|
||||||
@ -149,9 +149,9 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
|||||||
* TODO: this is an urgent fix to work with archive link (e.g. page_url/2009/04). Replace this with something better.
|
* TODO: this is an urgent fix to work with archive link (e.g. page_url/2009/04). Replace this with something better.
|
||||||
*/
|
*/
|
||||||
function checkAccessAction($action) {
|
function checkAccessAction($action) {
|
||||||
if (preg_match('/[0-9]{4}/', $action))
|
if (preg_match('/[0-9]{4}/', $action))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return parent::checkAccessAction($action);
|
return parent::checkAccessAction($action);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user