diff --git a/components/ILIAS/StudyProgrammeReference/classes/class.ilObjStudyProgrammeReferenceAccess.php b/components/ILIAS/StudyProgrammeReference/classes/class.ilObjStudyProgrammeReferenceAccess.php index 045cdef46441..fe633480b4c8 100755 --- a/components/ILIAS/StudyProgrammeReference/classes/class.ilObjStudyProgrammeReferenceAccess.php +++ b/components/ILIAS/StudyProgrammeReference/classes/class.ilObjStudyProgrammeReferenceAccess.php @@ -1,7 +1,5 @@ checkAccessOfUser($a_user_id, $a_permission, $a_cmd, $target_ref_id)) { + if (!$target_ref_id || !$ilAccess->checkAccessOfUser($a_user_id, $a_permission, $a_cmd, $target_ref_id)) { return false; } break;