From 58165564172e986f40c9a0dadf08cf992b91c5d4 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Mon, 31 Mar 2014 12:50:14 -0400 Subject: [PATCH] Restrict access to users with "access administration pages" permission. --- farm_admin.pages_default.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/farm_admin.pages_default.inc b/farm_admin.pages_default.inc index dd1d4e94..7541042f 100644 --- a/farm_admin.pages_default.inc +++ b/farm_admin.pages_default.inc @@ -16,7 +16,19 @@ function farm_admin_default_page_manager_pages() { $page->admin_title = 'Farm Admin'; $page->admin_description = 'An administrative panel for farm managers.'; $page->path = 'admin/farm'; - $page->access = array(); + $page->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'perm', + 'settings' => array( + 'perm' => 'access administration pages', + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + 'logic' => 'and', + ); $page->menu = array( 'type' => 'normal', 'title' => 'Farm',