mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-39570 mod_feedback - Missing privilege check
This commit is contained in:
parent
b25cd1f3d5
commit
09c2ec4303
@ -402,7 +402,12 @@ function feedback_get_recent_mod_activity(&$activities, &$index,
|
||||
return;
|
||||
}
|
||||
|
||||
$cm_context = context_module::instance($cm->id);
|
||||
$cm_context = context_module::instance($cm->id);
|
||||
|
||||
if (!has_capability('mod/feedback:view', $cm_context)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$accessallgroups = has_capability('moodle/site:accessallgroups', $cm_context);
|
||||
$viewfullnames = has_capability('moodle/site:viewfullnames', $cm_context);
|
||||
$groupmode = groups_get_activity_groupmode($cm, $course);
|
||||
|
Loading…
x
Reference in New Issue
Block a user