mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-45729 assign: Fix for assign unit tests
Check the user in the params, not the $USER
This commit is contained in:
parent
3150271c22
commit
5ba4ca894a
@ -3731,7 +3731,7 @@ class assign {
|
||||
$gradingcontrollerpreview,
|
||||
$instance->attemptreopenmethod,
|
||||
$instance->maxattempts);
|
||||
if (has_capability('mod/assign:submit', $this->get_context())) {
|
||||
if (has_capability('mod/assign:submit', $this->get_context(), $user)) {
|
||||
$o .= $this->get_renderer()->render($submissionstatus);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user