--- D:/temp/PURGE/userpoints.module	Wed Jun 10 15:39:33 2009
+++ Z:/auction/sites/all/modules/userpoints/userpoints.module	Wed Jun 10 14:12:56 2009
@@ -1494,8 +1494,7 @@
       return $blocks;
 
     case 'view':
-      if (user_access(USERPOINTS_PERM_VIEW)) {
-        if ($delta == -1) {
+      if ($delta == -1 && (user_access(USERPOINTS_PERM_VIEW) || user_access(USERPOINTS_PERM_VIEW_OWN))) {
           $title = t('@user\'s !points', array_merge(array('@user' => $user->name), userpoints_translation()));;
           if ($user->uid) {
             $points = (int) db_result(db_query('SELECT points FROM {userpoints} WHERE uid = %d', $user->uid));
@@ -1506,7 +1505,7 @@
             $content = t('!Points are visible to logged in users only', userpoints_translation());
           }
         }
-        else {
+      else if (user_access(USERPOINTS_PERM_VIEW)) {
           //$delta is our tid for pulling the points
           //if 0 we pull 0 or NULL
           $title = t('Highest Users');
@@ -1538,7 +1537,6 @@
         $block['content'] = $content;
 
         return $block;
-      } //if user_access()
     case 'configure':
       $form['up_records'] = array(
         '#type' => 'select',
