Skip to content
Snippets Groups Projects
Commit b3be0738 authored by Pierre BONNEFOI's avatar Pierre BONNEFOI Committed by João Mauricio
Browse files

Issue #3515343 by pbonnefoi, daniel.pernold: Undefined array key...

parent 993bb545
No related branches found
No related tags found
1 merge request!9Issue #3515343 by pbonnefoi, daniel.pernold: Undefined array key...
Pipeline #488939 passed
File changed. Contains only whitespace changes. Show whitespace changes.
......@@ -234,6 +234,9 @@ function _gin_toolbar_custom_menu_get_setting() {
}
foreach ($setting_to_apply as $key => $setting) {
if (!isset($setting['excluded_role'])) {
continue;
}
foreach ($setting['excluded_role'] as $role) {
if (in_array($role, array_values($user_roles))) {
unset($setting_to_apply[$key]);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment