From 7dbf26a0722d9d9be0dd26f24e9c4f0e120e954d Mon Sep 17 00:00:00 2001 From: Stefan Hecken Date: Tue, 14 Apr 2020 15:53:58 +0200 Subject: [PATCH] PRG: Member-Tab should be visible if user has position permission to view members --- .../classes/class.ilObjStudyProgrammeGUI.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Modules/StudyProgramme/classes/class.ilObjStudyProgrammeGUI.php b/Modules/StudyProgramme/classes/class.ilObjStudyProgrammeGUI.php index 5c27f8ad7095..283b5ae0c871 100644 --- a/Modules/StudyProgramme/classes/class.ilObjStudyProgrammeGUI.php +++ b/Modules/StudyProgramme/classes/class.ilObjStudyProgrammeGUI.php @@ -599,12 +599,18 @@ public function getTabs() ); } - if ($this->checkAccess("manage_members")) { + if ( + $this->checkAccess("manage_members") || + $this->ilAccess->checkPositionAccess( + ilOrgUnitOperation::OP_VIEW_MEMBERS, + (int)$this->object->getRefId() + ) + ) { $this->tabs_gui->addTab( self::TAB_MEMBERS, $this->lng->txt("members"), $this->getLinkTarget("members") - ); + ); } parent::getTabs(); }