Fix course_chat_restrict_to_coach - refs BT#13885

Tutors only can chat with students when course_chat_restrict_to_coach is enabled
pull/2458/head
Angel Fernando Quiroz Campos 8 years ago committed by GitHub
parent 246dfdcfc9
commit 9f6c364e7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      main/inc/lib/CourseChatUtils.php

@ -57,6 +57,10 @@ class CourseChatUtils
$criteria->andWhere(
Criteria::expr()->eq('status', Session::STUDENT)
);
} else {
$criteria->andWhere(
Criteria::expr()->eq('status', Session::COACH)
);
}
}

Loading…
Cancel
Save