Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue #7147: Unable to set survey permissions for non-admin users
  • Loading branch information
c-schmitz committed Jan 9, 2013
1 parent b5d7476 commit b26da2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/surveypermission.php
Expand Up @@ -540,7 +540,7 @@ function surveyright($surveyid)
if (Yii::app()->session['USER_RIGHT_SUPERADMIN'] != 1)
{
$where .= "sid = :surveyid AND owner_id != :postuserid AND owner_id = :owner_id";
$resrow = Survey::model()->find($where,array(':sid' => $surveyid, ':owner_id' => Yii::app()->session['loginID'], ':postuserid' => $postuserid));
$resrow = Survey::model()->find($where,array(':surveyid' => $surveyid, ':owner_id' => Yii::app()->session['loginID'], ':postuserid' => $postuserid));
}
}
else{
Expand Down

0 comments on commit b26da2a

Please sign in to comment.