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

Merge "Bug 1599375: Hide portfolio page site template from "Edit Access" screen"

parents 2c79d608 1bb7f3d5
......@@ -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)) {
......
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