Closed (fixed)
Project:
User Points Top Contributors
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Nov 2008 at 16:56 UTC
Updated:
26 Apr 2010 at 00:50 UTC
Userpoints has two permissions; userpoints_perm_view and userpoints_perm_view_own (added in November, 2008). The hook_user doesn't check for either of these thus displaying the user's points regarding of the viewing user's permissions.
The attached patch corrects this thus requiring the viewer to have the "view userpoints" permission to see points for all users or the "view own userpoints" to see their userpoints.
This patch has not been tested.
| Comment | File | Size | Author |
|---|---|---|---|
| up_top_contrib_check_perms_hook_user.patch | 2.19 KB | jredding |
Comments
Comment #1
kmillecam commentedCommitted to dev.