There is a trailing space in hook_menu(), which makes the settings page inaccessible to users other than UID 1.

diff --git a/facebook_pull.module b/facebook_pull.module
index a688332..43aae8d 100644
--- a/facebook_pull.module
+++ b/facebook_pull.module
@@ -53,7 +53,7 @@ function facebook_pull_menu() {
     'description' => 'Set Facebook API details for facebook blocks.',
     'page callback' => 'drupal_get_form',
     'page arguments' => array('facebook_pull_settings'),
-    'access arguments' => array('administer facebook pull '),
+    'access arguments' => array('administer facebook pull'),
     'type' => MENU_NORMAL_ITEM,
   );
CommentFileSizeAuthor
#1 access-argument-1528846-1.patch529 byteskostajh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kostajh’s picture

Title: Incorrect access callback in hook_menu() » Incorrect access argument in hook_menu()
Assigned: kostajh » Unassigned
Status: Active » Needs review
FileSize
529 bytes
alexss3’s picture

Issue summary: View changes

I also noticed this issue and it was quite frustrating as I don't use the default admin account to make changes. Had I never learned module development I would have been totally lost and not figured out the issue of the space.

Please fix so others are not confused and throw away your module out of frustration.

daveferrara1’s picture

Status: Needs review » Fixed
Related issues: +#2272193: Impossible to get to configuration page if you aren't UID 1

Previously fixed in 7.x-1.1 release

daveferrara1’s picture

Status: Fixed » Closed (fixed)