MINOR: Show BlogManagementWidget if the user has permissions to post

This commit is contained in:
Andrew O'Neil 2009-04-26 23:52:14 +00:00
parent baa470dd10
commit 05b0992f7e

View File

@ -46,7 +46,7 @@ class BlogManagementWidget extends Widget {
} }
function WidgetHolder() { function WidgetHolder() {
if($this->getBlogHolder()->IsOwner()) { if($this->getBlogHolder()->canEdit()) {
return $this->renderWith('WidgetHolder'); return $this->renderWith('WidgetHolder');
} }
return ''; return '';
@ -71,4 +71,4 @@ class BlogManagementWidget extends Widget {
} }
} }
?> ?>