From b3090f1713d4bdae8f3ba12a12bfd72f323ec00f Mon Sep 17 00:00:00 2001 From: Menno Dekker Date: Wed, 28 Nov 2012 15:20:45 +0100 Subject: [PATCH] Fixed #6975: Non superadmin can not see shared panel --- application/controllers/admin/participantsaction.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/admin/participantsaction.php b/application/controllers/admin/participantsaction.php index 32495ce9652..05b3b3f3439 100644 --- a/application/controllers/admin/participantsaction.php +++ b/application/controllers/admin/participantsaction.php @@ -193,6 +193,7 @@ function sharePanel() */ function getShareInfo_json() { + $aData = new stdClass(); $aData->page = 1; // If super administrator all the share info in the links table will be shown @@ -217,7 +218,7 @@ function getShareInfo_json() // otherwise only the shared participants by that user else { - $records = User::model()->getParticipantShared(Yii::app()->session['loginID']); + $records = Participants::model()->getParticipantShared(Yii::app()->session['loginID']); $aData->records = count($records); $aData->total = ceil($aData->records / 10); $i = 0;