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
858a7c2e
Commit
858a7c2e
authored
Apr 30, 2019
by
Robert Lyon
Committed by
Gerrit Code Review
Apr 30, 2019
Browse files
Merge "Bug 1826795: block content in group/institution pages should always be displayed"
parents
bc1fb0f2
59cf4d24
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/blocktype/lib.php
View file @
858a7c2e
...
...
@@ -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
)
{
...
...
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