I want the My Friends functionality to have a permissions setting so I can better control who can use this feature.

I changed this:

  $items['user/%user/friends'] = array(
    'title' => 'My Friends',
    'page callback' => 'gigya_get_friends',
    'type' => MENU_LOCAL_TASK,
    'page arguments' => array(1, 'user'),
    'access arguments' => array('gigya friends access'),
    'file' => 'gigya.pages.inc',
  );

This includes an access argument called "gigya friends access"

Then I added this to hook_perm().

I hope this can be added to the next release.

Comments

Gigya’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Gigya's 6.x module is deprecated. We no longer support this version and we encourage upgrading to our latest module.