Skip to content
Snippets Groups Projects
Commit f6debf70 authored by Tim Steiner's avatar Tim Steiner
Browse files

Protected the admin page of TAC behind a permission.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@191 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent a56902a2
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ function tac_menu()
'title' => 'Taxonomy Access Controls',
'page callback' => 'drupal_get_form',
'page arguments' => array('tac_admin'),
'access callback' => TRUE,
'access arguments' => array('administer tac'),
'file' => 'tac.admin.php',
'type' => MENU_LOCAL_TASK
);
......@@ -25,9 +25,14 @@ function tac_theme()
);
}
function tac_form_alter(&$form, $form_state, $form_id)
function tac_permission()
{
return array(
'administer tac' => array(
'title' => t('Administer'),
'description' => t('Administer the specific grants given to role/term pairs.')
),
);
}
function tac_node_access($node, $op, $account)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment