mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fixed BlogHolder->providePermissions() declaration
Placed on controller instead of model. Thanks @tractorcow for pointing this out.
This commit is contained in:
parent
ee532292d2
commit
1815eea00a
@ -170,6 +170,10 @@ class BlogHolder extends BlogTree implements PermissionProvider {
|
||||
DB::alteration_message("Blog page created","created");
|
||||
}
|
||||
}
|
||||
|
||||
function providePermissions() {
|
||||
return array("BLOGMANAGEMENT" => "Blog management");
|
||||
}
|
||||
}
|
||||
|
||||
class BlogHolder_Controller extends BlogTree_Controller {
|
||||
@ -195,10 +199,6 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
||||
return BBCodeParser::usable_tags();
|
||||
}
|
||||
|
||||
function providePermissions() {
|
||||
return array("BLOGMANAGEMENT" => "Blog management");
|
||||
}
|
||||
|
||||
/**
|
||||
* Post a new blog entry
|
||||
*/
|
||||
@ -311,6 +311,3 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
||||
$this->redirect($this->Link());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user