Fixed BlogHolder->providePermissions() declaration

Placed on controller instead of model. Thanks @tractorcow
for pointing this out.
This commit is contained in:
Ingo Schommer 2013-04-14 23:18:00 +02:00
parent ee532292d2
commit 1815eea00a

View File

@ -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());
}
}
?>