Download & Extend

Permissions issue with Sales Points

Project:Ubercart Userpoints
Version:6.x-2.0-beta1
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:permissions, sales points

Issue Summary

Hello,

Is there a way to hide Sales Points from the user's profile based on role permissions? I see that turning off "View Own Userpoints" does the job but of course that also hides the userpoints that the person bought. It would be nice if the two parts were separated so that only certain roles could see the Sales Points in their profiles.

Thanks!

Comments

#1

Same

Help

#2

If you don't need the ubercart seller points module just turn it off and you won't see sales points.

Otherwise.... you could.... hack the module (hear the gasps) and uncomment or remove this from the uc_userpoints_seller.module and that menu just wont exist.

$items['user/%user/sales-points'] = array(
    'title' => 'Sales Points',
  'description' => 'View your points earned by sales',
  'page callback' => 'uc_seller_history_user',
  'page arguments' => array(1),
  'access arguments' => array('view own userpoints'),
  'type' => MENU_LOCAL_TASK
  );

#3

I'll check out that hack but unfortunately I do need seller points for certain roles.