Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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,
);
Comment | File | Size | Author |
---|---|---|---|
#1 | access-argument-1528846-1.patch | 529 bytes | kostajh |
Comments
Comment #1
kostajh CreditAttribution: kostajh commentedComment #2
alexss3 CreditAttribution: alexss3 commentedI 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.
Comment #3
daveferrara1 CreditAttribution: daveferrara1 commentedPreviously fixed in 7.x-1.1 release
Comment #4
daveferrara1 CreditAttribution: daveferrara1 commented