Index: sites/all/modules/userpoints/userpoints.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/userpoints/userpoints.module,v
retrieving revision 1.67.2.48
diff -u -r1.67.2.48 userpoints.module
--- sites/all/modules/userpoints/userpoints.module	21 Oct 2009 17:55:23 -0000	1.67.2.48
+++ sites/all/modules/userpoints/userpoints.module	22 Oct 2009 13:07:06 -0000
@@ -1672,7 +1672,7 @@
   // User which are displaying points for
   $uid = (int)arg(1);
   if ($uid) {
-    if ($uid != $user->uid) {
+    if ($uid != $user->uid && !user_access(USERPOINTS_PERM_VIEW)) {
       // If not the same as logged in user
 		  drupal_access_denied();
       return;
@@ -1684,13 +1684,6 @@
   }
   $point_user = user_load(array('uid' => $uid));
 
-  // Check permissions
-  if(!user_access(USERPOINTS_PERM_VIEW)) {
-    // User has no access to view points
-		drupal_access_denied();
-    return;
-  }
-
   if (!user_access(USERPOINTS_PERM_VIEW_OWN)) {
     // User has no access to view own points
 		drupal_access_denied();
