From e7d0214650bc8e3ed8abbf2d3277dd856e346a8a Sun, 1 Apr 2012 21:45:18 -0300
From: Javier Castro <javier.alejandro.castro@gmail.com>
Date: Sun, 1 Apr 2012 21:44:50 -0300
Subject: [PATCH] Fix for #1390156 Restore commented query condition

diff --git a/support.module b/support.module
old mode 100644
new mode 100755
index c49c45b..1ec3e0c
--- a/support.module
+++ b/support.module
@@ -2431,7 +2431,8 @@
                 // Must be on the allowed clients list
                 ->condition($ticket_alias . '.client', $clients)
                 // and must be owned by the user
-                ->condition($nalias . '.uid', $user->uid))
+                //->condition($nalias . '.uid', $user->uid))
+            )
               // or must be something other than a support ticket
               ->condition($ticket_alias . '.client', null));
           }
@@ -3867,6 +3868,7 @@
  * Return the currently active client.
  */
 function _support_current_client() {
+  $client = NULL;
   $clients = _support_available_clients();
   // Allow plug-in modules to affect which is the currently active client.
   drupal_alter('support_current_client', $clients);
@@ -3883,9 +3885,6 @@
       // matching client...?
       $client = key($clients);
     }
-  }
-  else {
-    return NULL;
   }
   return $client;
 }
