mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-24958 - bad permission check on anonymous feedbacks
This commit is contained in:
parent
8f609a37cf
commit
8d8e6694c8
@ -98,6 +98,8 @@
|
||||
|
||||
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;
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
$module->version = 2010102300; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->version = 2010103100; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2010080300; // Requires this Moodle version
|
||||
$feedback_version_intern = 1; //this version is used for restore older backups
|
||||
$module->cron = 0; // Period for cron to check this module (secs)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user