Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
4e343345
Commit
4e343345
authored
May 14, 2018
by
Robert Lyon
Committed by
Gerrit Code Review
May 14, 2018
Browse files
Merge "Bug 1770496: Validate access for member to a public group" into 17.04_STABLE
parents
5196c02d
c38cc373
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/mahara.php
View file @
4e343345
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment