The hook_menu entry that lets users edit their social network connections is bugged. It gives access denied for normal users.

It is currently:

  $items['user/%user/edit/gigya'] = array(
    'title' => 'Social Networks',
    'page callback' => 'gigya_connect',
    'page arguments' => array(1, 'user'),
    'access callback' => 'user_edit_access',
    'access arguments' => array(1),
    'load arguments' => array('%map', '%index'),
    'weight' => 10,
    'type' => MENU_LOCAL_TASK,
    'file' => 'gigya.pages.inc',
  );

but should be:

  $items['user/%user_category/edit/gigya'] = array(
    'title' => 'Social Networks',
    'page callback' => 'gigya_connect',
    'page arguments' => array(1),
    'access callback' => 'user_edit_access',
    'access arguments' => array(1),
    'load arguments' => array('%map', '%index'),
    'weight' => 10,
    'type' => MENU_LOCAL_TASK,
    'file' => 'gigya.pages.inc',
  );
CommentFileSizeAuthor
#1 1482730-fix-menu-hook-1.patch615 bytesrwohleb

Comments

rwohleb’s picture

StatusFileSize
new615 bytes

Here is a patch for it.

rwohleb’s picture

Status: Active » Needs review
rwohleb’s picture

Still no movement on this?

gambaweb’s picture

Status: Needs review » Fixed

thanks for the patch add to 6.x-3.2-dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.