MDL-24958 - bad permission check on anonymous feedbacks
This commit is contained in:
@@ -40,6 +40,8 @@ if(has_capability('mod/feedback:complete', $context)) {
|
||||
|
||||
if(isset($CFG->feedback_allowfullanonymous)
|
||||
AND $CFG->feedback_allowfullanonymous
|
||||
AND $course->id == SITEID
|
||||
AND (!$courseid OR $courseid == SITEID)
|
||||
AND $feedback->anonymous == FEEDBACK_ANONYMOUS_YES ) {
|
||||
$feedback_complete_cap = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user