mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR: Show BlogManagementWidget if the user has permissions to post
This commit is contained in:
parent
baa470dd10
commit
05b0992f7e
@ -46,7 +46,7 @@ class BlogManagementWidget extends Widget {
|
||||
}
|
||||
|
||||
function WidgetHolder() {
|
||||
if($this->getBlogHolder()->IsOwner()) {
|
||||
if($this->getBlogHolder()->canEdit()) {
|
||||
return $this->renderWith('WidgetHolder');
|
||||
}
|
||||
return '';
|
||||
@ -71,4 +71,4 @@ class BlogManagementWidget extends Widget {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user