Skip to content

Commit

Permalink
Fixed #6975: Non superadmin can not see shared panel
Browse files Browse the repository at this point in the history
  • Loading branch information
mennodekker committed Nov 28, 2012
1 parent 450976e commit b3090f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/participantsaction.php
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit b3090f1

Please sign in to comment.