The cloud viewer is erroneously displaying user emails when anonymous marking is turned on in the assignment settings. This is because we are not checking the assignment settings when checking the owners of the submission, we are only checking the plugin level settings.
The bug was on 'submission.class.php' line 298, the rest of this PR is just cleaning up some messy code.
The cloud viewer is erroneously displaying user emails when anonymous marking is turned on in the assignment settings. This is because we are not checking the assignment settings when checking the owners of the submission, we are only checking the plugin level settings. The bug was on 'submission.class.php' line 298, the rest of this PR is just cleaning up some messy code.