diff --git a/application/models/Question.php b/application/models/Question.php index abf19f1d148..09742a47c95 100644 --- a/application/models/Question.php +++ b/application/models/Question.php @@ -773,8 +773,16 @@ public function getbuttons() $editurl = Yii::app()->createUrl("admin/questions/sa/editquestion/surveyid/$this->sid/gid/$this->gid/qid/$this->qid"); $button = ' '; - $button .= ''; - $button .= ''; + + if (Permission::model()->hasSurveyPermission($this->sid, 'surveycontent', 'update')) + { + $button .= ''; + } + + if (Permission::model()->hasSurveyPermission($this->sid, 'surveycontent', 'read')) + { + $button .= ''; + } $oSurvey = Survey::model()->findByPk($this->sid);