← Back to team overview

mahara-contributors team mailing list archive

[Bug 1826795] A patch has been submitted for review

 

Patch for "19.04_STABLE" branch: https://reviews.mahara.org/9904

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1826795

Title:
  group/institution page  error when rendering a block

Status in Mahara:
  Fix Committed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1826795/+subscriptions


References