Skip to content

Commit

Permalink
fix(tools): only show enrollments dashboard to admins
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Feb 9, 2023
1 parent 3ddc64b commit 90ade47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php-config/Slate/UI/Tools.config.d/cbl.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

if ($GLOBALS['Session']->hasAccountLevel('Administrator')) {
$cblTools['Portfolio Manager'] = '/cbl/dashboards/portfolios/admin';
$cblTools['Enrollments Dashboard'] = '/cbl/dashboards/student-competencies/admin';
}

if ($GLOBALS['Session']->hasAccountLevel('Staff')) {
$cblTools['Competency Dashboard'] = '/cbl/dashboards/demonstrations/teacher';
$cblTools['Task Dashboard'] = '/cbl/dashboards/tasks/teacher';
//$cblTools['My Assigned Tasks'] = '/cbl/dashboards/tasks/student';
$cblTools['Task Library'] = '/cbl/dashboards/tasks/manager';
$cblTools['Enrollments Dashboard'] = '/cbl/dashboards/student-competencies/admin';
} elseif ($GLOBALS['Session']->Person && $GLOBALS['Session']->Person->isA(Slate\People\Student::class)) {
$cblTools['Competency Dashboard'] = '/cbl/dashboards/demonstrations/student';
$cblTools['Task Dashboard'] = '/cbl/dashboards/tasks/student';
Expand Down

0 comments on commit 90ade47

Please sign in to comment.