Publicaly viewable group with submissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Ghada El-Zoghbi |
Bug Description
Mahara: 17.10.2 (2017092611)
OS: Linux 16.04 (php 7)
DB: Postgres
Browser: FF && Chrome (any)
When a group is created with the following settings:
* Allow submissions = Yes
* Publicly viewable group = Yes
When a user who is not logged in tries to view this group (i.e. because they know the URL), they get the following error:
[WAR] 75 (lib/user.php:1943) Undefined variable: id
Call stack (most recent first):
log_message(
error(8, "Undefined variable: id", "/var/www/
profile_url(false, false) at /var/www/
View->get_
View::get_
View::get_
group_view_
PluginBlocktype
PluginBlocktype
call_static_
BlockInstance-
View->build_
View->build_
View->build_rows() at /var/www/
[WAR] 75 (lib/user.php:1947) profile_url called with no user id
Call stack (most recent first):
profile_url(false, false) at /var/www/
View->get_
View::get_
View::get_
group_view_
PluginBlocktype
PluginBlocktype
call_static_
BlockInstance-
View->build_
View->build_
View->build_rows() at /var/www/
Because the group is submittable, the application is trying to retrieve a list of submitted pages/collections to this group.
A check is required to ensure the user is logged in before it retrieves this data.
Changed in mahara: | |
assignee: | nobody → Ghada El-Zoghbi (ghada-z) |
Changed in mahara: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/8578