Commit 5ce05a26 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic

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

behatnotneeded

Change-Id: I0ad0e632dbb3a2cf26cda321d0ec0a550b579d02
(cherry picked from commit 59cf4d24)
parent 8c15aea3
......@@ -1161,7 +1161,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