Commit 65f6e575 authored by Ghada El-Zoghbi's avatar Ghada El-Zoghbi Committed by Srdjan

Bug 1745278: check user is logged in for publicly viewable groups

When a group is public and allows submissions, we need to check
that the user is logged in before retrieving the list of
sumibtted pages/collections to the group.

Sponsored by The Australian National University

Change-Id: Id8aeffea12aa36f27122069f9372fcb7b9ed95c5
parent 0bea5903
......@@ -409,7 +409,7 @@ class PluginBlocktypeGroupViews extends MaharaCoreBlocktype {
if ($group->submittableto) {
if ($group->submittableto && $USER->is_logged_in()) {
// A user can submit more than one view to the same group, but no view can be
// submitted to more than one group.
......@@ -1908,6 +1908,8 @@ function get_new_profile_urlid($desired) {
function profile_url($user, $full=true, $useid=false) {
$wantclean = !$useid && get_config('cleanurls');
$urlid = null;
$id = null;
if ($user instanceof User) {
$id = $user->get('id');
$urlid = $wantclean ? $user->get('urlid') : null;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment