We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c16678 commit dbeab9aCopy full SHA for dbeab9a
layout_custom_theme.module
@@ -106,8 +106,8 @@ function layout_custom_theme_custom_theme() {
106
// Get the current item.
107
$item = menu_get_item();
108
109
- // Check that an item has been returned.
110
- if ($item) {
+ // Check that an item has been returned and that user has access to it.
+ if ($item && $item['access']) {
111
// Get the layout in use by the current item.
112
$layout = layout_get_layout_by_path(NULL, $item);
113
// Attempt to retrieve a custom theme settings for this layout.
0 commit comments