mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-25872 View assignment submissions: show only students, not teachers
Fixing incorrect capability reference mod/assignment:view to ...:submit
This commit is contained in:
parent
4ad6128920
commit
7d8b217bca
@ -1190,7 +1190,7 @@ class assignment_base {
|
||||
}
|
||||
|
||||
/// Get all ppl that are allowed to submit assignments
|
||||
list($esql, $params) = get_enrolled_sql($context, 'mod/assignment:view', $currentgroup);
|
||||
list($esql, $params) = get_enrolled_sql($context, 'mod/assignment:submit', $currentgroup);
|
||||
|
||||
if ($filter == self::FILTER_ALL) {
|
||||
$sql = "SELECT u.id FROM {user} u ".
|
||||
|
Loading…
x
Reference in New Issue
Block a user