When a user only has the "Add points" permission, he should be able to see the "Add or deduct points" link when visiting another user's profile page. Currently, such a user cannot see that link even though he has permission to add points.

--Ben

CommentFileSizeAuthor
#1 fix_add_permission_check.patch907 bytesberdir

Comments

berdir’s picture

Status: Active » Needs review
StatusFileSize
new907 bytes

Confirmed, please try the patch.

BenK’s picture

Status: Needs review » Reviewed & tested by the community

Tested the patch and confirmed that everything is fixed. Thanks! This is RTBC.

--Ben

berdir’s picture

Status: Reviewed & tested by the community » Fixed

Commited.

Status: Fixed » Closed (fixed)

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

taecelle’s picture

Component: Code: userpoints API » Code: userpoints

Still don't see this link (i'm admin!!). Where it's supposed to be?
In my userpoints.module :

$links = array();
  if (userpoints_access_my_points($account)) {
    $links['userpoints-view'] = array(
      'title' => t('View !points transactions', userpoints_translation()),
      'href' => $user->uid == $account->uid ? 'myuserpoints' : 'user/' . $account->uid . '/points',
    );
  }
 <strong> if (userpoints_admin_access('add')) {</strong>
    $links['userpoints-adjust'] = array(
      'title' => t('Add or deduct !points', userpoints_translation()),
      'href' => 'admin/config/people/userpoints/add/' . $account->uid,
    );
  }

but it doesn't help.