Commit 1cbf5463 authored by Robert Lyon's avatar Robert Lyon

Bug 1737851: Avoid submitted list check for loggedout user

When viewing a public group

behatnotneeded

Change-Id: I71a55f6bea018969a8499ca04d9c57754aa9a0de
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 88e8a6c8
......@@ -169,7 +169,7 @@ class PluginBlocktypeGroupViews extends MaharaCoreBlocktype {
$dwoo->assign('group_view_submission_form', $data['group_view_submission_form']);
}
// Get members who have no submitted work - only show to those allowed to see submitted work
if (!empty($configdata['showsubmitted']) && group_user_can_assess_submitted_views($groupid, $USER->get('id')) && isset($data['nosubmissions'])) {
if ($USER->is_logged_in() && !empty($configdata['showsubmitted']) && group_user_can_assess_submitted_views($groupid, $USER->get('id')) && isset($data['nosubmissions'])) {
$nosubmissions = $data['nosubmissions'];
$pagination = array(
'baseurl' => $baseurl,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment