Commit 345d6e34 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon

Bug 1826795: block content in group/institution pages should always be displayed


Change-Id: I0ad0e632dbb3a2cf26cda321d0ec0a550b579d02
(cherry picked from commit 59cf4d24)
parent 74adcd7d
......@@ -1179,7 +1179,8 @@ class BlockInstance {
$classname = generate_class_name('blocktype', $this->get('blocktype'));
$displayforrole = call_static_method($classname, 'display_for_roles', $user_roles);
$checkview = $this->get_view();
if ($USER->is_admin_for_user($checkview->get('owner')) && $checkview->is_objectionable()) {
if ($checkview->get('owner') == NULL ||
($USER->is_admin_for_user($checkview->get('owner')) && $checkview->is_objectionable())) {
$displayforrole = true;
if (!$displayforrole) {
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