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
aec9fbd0
Commit
aec9fbd0
authored
Jul 08, 2016
by
Robert Lyon
Committed by
Gerrit Code Review
Jul 08, 2016
Browse files
Merge "Bug 1599375: Hide portfolio page site template from "Edit Access" screen"
parents
2c79d608
1bb7f3d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/view/access.php
View file @
aec9fbd0
...
...
@@ -80,6 +80,15 @@ if ($view->get('type') != 'profile') {
list
(
$collections
,
$views
)
=
View
::
get_views_and_collections
(
$view
->
get
(
'owner'
),
$group
,
$institution
,
false
,
false
);
if
(
$institution
===
'mahara'
)
{
// Remove site templates from the list
foreach
(
$views
as
$k
=>
$v
)
{
if
((
int
)
$v
[
'template'
]
===
View
::
SITE_TEMPLATE
)
{
unset
(
$views
[
$k
]);
}
}
}
}
if
(
!
empty
(
$collections
)
||
!
empty
(
$views
))
{
...
...
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