aboutsummaryrefslogtreecommitdiff
path: root/lib/modules/GradebookModule.class.php
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-05-05 09:27:43 +0000
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-05-05 09:27:43 +0000
commitb03503ab40fda01b414692ba3ac26d2ae447cf2d (patch)
treef7379e8438f1986f040acc8af22113360972beb3 /lib/modules/GradebookModule.class.php
parente527a655edc8a5ad7ceac6cf5f705b6246497a0f (diff)
display correct navigation for tutors in gradebook, fixes #1018
Closes #1018 Merge request studip/studip!588
Diffstat (limited to 'lib/modules/GradebookModule.class.php')
-rw-r--r--lib/modules/GradebookModule.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/modules/GradebookModule.class.php b/lib/modules/GradebookModule.class.php
index 4cde852..ac8d69b 100644
--- a/lib/modules/GradebookModule.class.php
+++ b/lib/modules/GradebookModule.class.php
@@ -46,7 +46,7 @@ class GradebookModule extends CorePlugin implements SystemPlugin, StudipModule
public function getIconNavigation($courseId, $lastVisit, $userId)
{
$title = _('Gradebook');
- if ($GLOBALS['perm']->have_studip_perm('dozent', $courseId, $userId)) {
+ if ($GLOBALS['perm']->have_studip_perm('tutor', $courseId, $userId)) {
$changed = Instance::countBySQL(
'INNER JOIN grading_definitions gd ON(gd.id = definition_id) '.
'WHERE gd.course_id = ? AND grading_instances.chdate > ?',
@@ -84,7 +84,7 @@ class GradebookModule extends CorePlugin implements SystemPlugin, StudipModule
$gradebook = new Navigation('Gradebook');
$gradebook->addSubNavigation('index', new Navigation(_('Erbrachte Leistungen'), 'dispatch.php/course/gradebook/overview'));
- if ($GLOBALS['perm']->have_studip_perm('dozent', $cid)) {
+ if ($GLOBALS['perm']->have_studip_perm('tutor', $cid)) {
$this->addTabNavigationOfLecturers($gradebook, $cid);
}