Skip to content

Commit

Permalink
Fixed issue #10883: Error 500 survey permission
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Apr 7, 2016
1 parent 98e736d commit f0efa6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/controllers/admin/surveypermission.php
Expand Up @@ -593,8 +593,10 @@ function delete($surveyid)
$action = App()->getRequest()->getParam('action');

$imageurl = Yii::app()->getConfig('imageurl');
$postuserid = (!empty(App()->getRequest()->getParam('uid'))) ? App()->getRequest()->getParam('uid') : false;
$postusergroupid = (!empty(App()->getRequest()->getParam('gid'))) ? App()->getRequest()->getParam('uid') : false;// Not used
$uid = App()->getRequest()->getParam('uid');
$gid = App()->getRequest()->getParam('gid');
$postuserid = (!empty($uid)) ? $uid : false;
$postusergroupid = (!empty($gid)) ? $gid : false;// Not used

if($postuserid && !in_array($postuserid,getUserList('onlyuidarray')))
{
Expand Down

0 comments on commit f0efa6a

Please sign in to comment.