Skip to content

Commit dbeab9a

Browse files
Add check for access (#11)
1 parent 5c16678 commit dbeab9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layout_custom_theme.module

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ function layout_custom_theme_custom_theme() {
106106
// Get the current item.
107107
$item = menu_get_item();
108108

109-
// Check that an item has been returned.
110-
if ($item) {
109+
// Check that an item has been returned and that user has access to it.
110+
if ($item && $item['access']) {
111111
// Get the layout in use by the current item.
112112
$layout = layout_get_layout_by_path(NULL, $item);
113113
// Attempt to retrieve a custom theme settings for this layout.

0 commit comments

Comments
 (0)