Restrict access to users with "access administration pages" permission.

This commit is contained in:
Michael Stenta 2014-03-31 12:50:14 -04:00
parent a80d939b54
commit 5816556417
1 changed files with 13 additions and 1 deletions

View File

@ -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',