Skip to content

Commit

Permalink
PRG: Member-Tab should be visible if user has position permission to …
Browse files Browse the repository at this point in the history
…view members
  • Loading branch information
shecken authored and klees committed Apr 15, 2020
1 parent 0ece60e commit 7dbf26a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Modules/StudyProgramme/classes/class.ilObjStudyProgrammeGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 7dbf26a

Please sign in to comment.