Skip to content
Snippets Groups Projects
Commit 8dfbd0f4 authored by Elmar Ludwig's avatar Elmar Ludwig Committed by David Siegfried
Browse files

fix permission check, fixes #1349

Closes #1349

Merge request studip/studip!868
parent 1ff1c2c5
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment