Commit 166baccd authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Fix fatal error when checking access of group or institutional pages



Bug #788460

Change-Id: Ib39b2d91bfa2cde4295a864e2efcbb9b9b39c709
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent fc0112b8
......@@ -1635,8 +1635,10 @@ function can_view_view($view_id, $user_id=null) {
}
// If the view's owner is suspended, deny access to the view
if ((!$owner = $view->get_owner_object()) || $owner->suspendedcusr) {
return false;
if ($view->get('owner')) {
if ((!$owner = $view->get_owner_object()) || $owner->suspendedcusr) {
return false;
}
}
// Overriding start/stop dates are set by the owner to deny access
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment