mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Merge branch 'MDL-58453-master' of git://github.com/jleyva/moodle
This commit is contained in:
commit
ad02561c15
2 changed files with 19 additions and 0 deletions
|
@ -1002,6 +1002,10 @@ class mod_feedback_external extends external_api {
|
|||
|
||||
list($feedback, $course, $cm, $context) = self::validate_feedback($params['feedbackid']);
|
||||
|
||||
if ($feedback->anonymous != FEEDBACK_ANONYMOUS_NO || $feedback->course == SITEID) {
|
||||
throw new moodle_exception('anonymous', 'feedback');
|
||||
}
|
||||
|
||||
// Check permissions.
|
||||
require_capability('mod/feedback:viewreports', $context);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue