Skip to content

Commit

Permalink
Dev Updated menu to link to new participants interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Jun 2, 2015
1 parent 30118e9 commit 9c9e48b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion application/controllers/ParticipantsController.php
Expand Up @@ -15,11 +15,12 @@ public function accessRules()

public function actionIndex() {
$dataProvider = new \CActiveDataProvider(Participant::model()->accessibleTo(App()->user->id)->with('surveyCount'));

$this->menus['participant'] = [];
$this->render('index', ['dataProvider' => $dataProvider]);
}
public function actionSummary() {

$this->menus['participant'] = [];
$data = array(
'totalrecords' => false && App()->user->checkAccess('superadmin') ? Participant::model()->count() : Participant::model()->accessibleTo(App()->user->id)->count(),
'owned' => Participant::model()->ownedBy(App()->user->id)->count(),
Expand Down
2 changes: 1 addition & 1 deletion application/views/global/menu.php
Expand Up @@ -54,7 +54,7 @@
),
array(
'title' => gT('Central participant database/panel'),
'url' => array('admin/participants'),
'url' => array('participants/index'),
'icon' => 'user',
'visible' => App()->user->checkAccess('participantpanel')
),
Expand Down

0 comments on commit 9c9e48b

Please sign in to comment.