Commit db86f05e authored by Obsidian Design's avatar Obsidian Design

Issue #863758 by garethsprice: Provide specific permissions for the...

Issue #863758 by garethsprice: Provide specific permissions for the Authorize.net Payment Webform module.
parent b3392e0a
......@@ -124,6 +124,15 @@ function authorizenetwebform_nodeapi(&$node, $op, $form = NULL, $page = NULL) {
}
}
/**
* Implementation of hook_perm()
*
* Specify permissions provided by the module.
*/
function authorizenetwebform_perm() {
return array("administer authorizenetwebform");
}
/**
* Implementation of hook_menu()
*
......@@ -135,7 +144,7 @@ function authorizenetwebform_menu() {
'description' => 'Configure Authorize.Net webform integration',
'page callback' => 'drupal_get_form',
'page arguments' => array('authorizenetwebform_admin_settings'),
'access arguments' => array('access administration pages'),
'access arguments' => array('administer authorizenetwebform'),
'type' => MENU_NORMAL_ITEM
);
return $items;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment