mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-17249 - feedbacks on the mainsite are not accessible
This commit is contained in:
parent
6a1d6f2e71
commit
58627682fa
3 changed files with 11 additions and 11 deletions
|
@ -36,6 +36,11 @@
|
|||
$capabilities->complete = true;
|
||||
}
|
||||
|
||||
//check whether the feedback is located and! started from the mainsite
|
||||
if($course->id == SITEID AND !$courseid) {
|
||||
$courseid = SITEID;
|
||||
}
|
||||
|
||||
//check whether the feedback is mapped to the given courseid
|
||||
if($course->id == SITEID AND !$capabilities->edititems) {
|
||||
if($DB->get_records('feedback_sitecourse_map', array('feedbackid'=>$feedback->id))) {
|
||||
|
@ -45,11 +50,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
//check whether the feedback is located and! started from the mainsite
|
||||
if($course->id == SITEID AND !$courseid) {
|
||||
$courseid = SITEID;
|
||||
}
|
||||
|
||||
if($feedback->anonymous != FEEDBACK_ANONYMOUS_YES) {
|
||||
if($course->id == SITEID) {
|
||||
require_login($course->id, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue