diff --git a/protected/modules_core/wall/widgets/ContentFormWidget.php b/protected/modules_core/wall/widgets/ContentFormWidget.php index 2fabdda1b1..c76934c12d 100644 --- a/protected/modules_core/wall/widgets/ContentFormWidget.php +++ b/protected/modules_core/wall/widgets/ContentFormWidget.php @@ -59,11 +59,25 @@ class ContentFormWidget extends HWidget { * Overwrite me! */ public function renderForm() { - + return ""; } + + /** + * Checks write permissions + */ + protected function hasWritePermission() { + return $this->contentContainer->canWrite(); + } + + public function run() { + + if (!$this->hasWritePermission()) + return; + $this->renderForm(); + $this->render('application.modules_core.wall.widgets.views.contentForm', array( 'form' => $this->form, 'contentContainer' => $this->contentContainer,