Reviewed: https://reviews.mahara.org/361 Committed: http://gitorious.org/mahara/mahara/commit/e1214cab6330c2607f8acc33d4c8ad9248cef7d2 Submitter: Richard Mansfield (richa...@mahara.org) Branch: master
commit e1214cab6330c2607f8acc33d4c8ad9248cef7d2 Author: Richard Mansfield <richard.mansfi...@catalyst.net.nz> Date: Wed Jun 22 09:27:28 2011 +1200 Avoid sql error when logged-out & viewing public group page (bug #800024) The can_view_view function calls $view->get_owner_object without first checking whether the view is owned by an individual user. This change catches the case inside get_owner_object before triggering the sql error. Change-Id: Icf1ec4060dbe0621ea785fad73c3759bff36b25b Signed-off-by: Richard Mansfield <richard.mansfi...@catalyst.net.nz> -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/800024 Title: Cannot look at public group views when logged out Status in Mahara ePortfolio: Confirmed Bug description: In can_view_view(), the call to $view->get_owner_object() dies with an sql error when the view doesn't have an owner. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/800024/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp