Skip to content
Snippets Groups Projects
Commit c17fc680 authored by Astor Bizard's avatar Astor Bizard :dog2:
Browse files

Fixed bug where teachers could not properly see groups submissions.

parent 9994b49c
No related branches found
No related tags found
1 merge request!1Dev: Submissions list rework, webservices and bugfixes
...@@ -99,7 +99,7 @@ if (! $subinstance) { ...@@ -99,7 +99,7 @@ if (! $subinstance) {
} }
$submissionid = $subinstance->id; $submissionid = $subinstance->id;
if ($vpl->is_inconsistent_user( $subinstance->userid, $userid )) { if ($vpl->is_inconsistent_user( $subinstance->userid, $userid ) && !$vpl->has_capability( VPL_GRADE_CAPABILITY )) {
print_error( 'vpl submission user inconsistence' ); print_error( 'vpl submission user inconsistence' );
} }
if ($vpl->get_instance()->id != $subinstance->vpl) { if ($vpl->get_instance()->id != $subinstance->vpl) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment