← Back to team overview

mahara-contributors team mailing list archive

[Bug 1737851] [NEW] Unable to view public group homepage when logged out

 

Public bug reported:

When we have the follow in play:

1) A group that has "public" = 1
2) a group homepage where the group pages block has $configdata['showsubmitted'] = 1

When a logged out user tries to view the group homepage we get an error:

group_user_access: user argument should be an integer

This is because the logged out user can't be compared to a group
member/admin

We need to add a $USER->is_logged-in() check before going down that
rabbithole

** Affects: mahara
     Importance: High
         Status: Fix Committed

** Affects: mahara/17.10
     Importance: High
         Status: Fix Committed

** Affects: mahara/18.04
     Importance: High
         Status: Fix Committed

** Also affects: mahara/17.10
   Importance: Undecided
       Status: New

** Also affects: mahara/18.04
   Importance: Undecided
       Status: New

** Changed in: mahara/17.10
   Importance: Undecided => High

** Changed in: mahara/18.04
   Importance: Undecided => High

** Changed in: mahara/17.10
       Status: New => In Progress

** Changed in: mahara/18.04
       Status: New => In Progress

** Changed in: mahara/17.10
    Milestone: None => 17.10.1

** Changed in: mahara/18.04
    Milestone: None => 18.04.0

-- 
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/1737851

Title:
  Unable to view public group homepage when logged out

Status in Mahara:
  Fix Committed
Status in Mahara 17.10 series:
  Fix Committed
Status in Mahara 18.04 series:
  Fix Committed

Bug description:
  When we have the follow in play:

  1) A group that has "public" = 1
  2) a group homepage where the group pages block has $configdata['showsubmitted'] = 1

  When a logged out user tries to view the group homepage we get an
  error:

  group_user_access: user argument should be an integer

  This is because the logged out user can't be compared to a group
  member/admin

  We need to add a $USER->is_logged-in() check before going down that
  rabbithole

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


Follow ups