group/institution page error when rendering a block

Bug #1826795 reported by Cecilia Vela Gurovic on 2019-04-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
High
Cecilia Vela Gurovic
18.10
High
Unassigned

Bug Description

steps:
1. Create a group / institution / site page
2. Add a block
3. Make it copyable.
4. Log in as another user
5. Click the page title
Expected result: Page is shown./
Actual result: Error is shown.

Error message:
[WAR] 9f (auth/user.php:849) Invalid argument pass to is_admin_for_user method
Call stack (most recent first):

    User->is_admin_for_user(null) at /home/kristina/code/mahara/htdocs/blocktype/lib.php:1182
    BlockInstance->render_viewing(false, false) at /home/kristina/code/mahara/htdocs/lib/view.php:2330
    View->build_column(1, 2, false, false, false) at /home/kristina/code/mahara/htdocs/lib/view.php:2280
    View->build_columns(1, false, false, false) at /home/kristina/code/mahara/htdocs/lib/view.php:2265
    View->build_rows() at /home/kristina/code/mahara/htdocs/view/view.php:338

Changed in mahara:
importance: Undecided → High
status: New → In Progress
milestone: none → 19.04.0
assignee: nobody → Cecilia Vela Gurovic (ceciliavg)

Reviewed: https://reviews.mahara.org/9895
Committed: https://git.mahara.org/mahara/mahara/commit/59cf4d2417478be886a8f750c12fff7d710110eb
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 59cf4d2417478be886a8f750c12fff7d710110eb
Author: Cecilia Vela Gurovic <email address hidden>
Date: Mon Apr 29 13:13:47 2019 +1200

Bug 1826795: block content in group/institution pages should always be displayed

behatnotneeded

Change-Id: I0ad0e632dbb3a2cf26cda321d0ec0a550b579d02

Reviewed: https://reviews.mahara.org/9904
Committed: https://git.mahara.org/mahara/mahara/commit/345d6e348c2bee4ab5e80e585c27970164fea4eb
Submitter: Robert Lyon (<email address hidden>)
Branch: 19.04_STABLE

commit 345d6e348c2bee4ab5e80e585c27970164fea4eb
Author: Cecilia Vela Gurovic <email address hidden>
Date: Mon Apr 29 13:13:47 2019 +1200

Bug 1826795: block content in group/institution pages should always be displayed

behatnotneeded

Change-Id: I0ad0e632dbb3a2cf26cda321d0ec0a550b579d02
(cherry picked from commit 59cf4d2417478be886a8f750c12fff7d710110eb)

Robert Lyon (robertl-9) on 2019-04-29
Changed in mahara:
status: In Progress → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released

Reviewed: https://reviews.mahara.org/9958
Committed: https://git.mahara.org/mahara/mahara/commit/5ce05a26b473cc3f2d19ecf047b2004e15017b75
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: 18.10_STABLE

commit 5ce05a26b473cc3f2d19ecf047b2004e15017b75
Author: Cecilia Vela Gurovic <email address hidden>
Date: Mon Apr 29 13:13:47 2019 +1200

Bug 1826795: block content in group/institution pages should always be displayed

behatnotneeded

Change-Id: I0ad0e632dbb3a2cf26cda321d0ec0a550b579d02
(cherry picked from commit 59cf4d2417478be886a8f750c12fff7d710110eb)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers