Commit 4e343345 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1770496: Validate access for member to a public group" into 17.04_STABLE

parents 5196c02d c38cc373
......@@ -2809,6 +2809,10 @@ function can_view_view($view, $user_id=null) {
if ($publicviews) {
return true;
else if ($view->get('type') == 'grouphomepage') {
// If the group is public then the homepage should be available
return true;
else if ($publicprofiles && $view->get('type') == 'profile') {
return true;
Supports Markdown
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