diff --git a/app/controllers/course/members.php b/app/controllers/course/members.php index a3653160da85a2817d49f02f097af34f246cf6f8..4e6afdc44f50552f63e661ab987161c1db172427 100644 --- a/app/controllers/course/members.php +++ b/app/controllers/course/members.php @@ -1820,8 +1820,7 @@ class Course_MembersController extends AuthenticatedController public function circular_mail_action() { - if (!$this->is_tutor || - ($this->config->COURSE_STUDENT_MAILING && !$this->is_autor)) { + if (!$this->is_tutor && !$this->config->COURSE_STUDENT_MAILING) { throw new AccessDeniedException(); }