]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttUser.class.php
Removed rank field from the query as it is currently not used.
[timetracker.git] / WEB-INF / lib / ttUser.class.php
index 7f9894efd455ba918378c33d5362ad2439b6b6be..27b90a425e4ec6b7f5dc27d756d17c5e256ebf2c 100644 (file)
@@ -305,7 +305,7 @@ class ttUser {
 
     $mdb2 = getConnection();
 
-    $sql =  "select u.id, u.name, u.login, u.role_id, u.status, u.rate, u.email, r.rank from tt_users u".
+    $sql =  "select u.id, u.name, u.login, u.role_id, u.status, u.rate, u.email from tt_users u".
             " left join tt_roles r on (u.role_id = r.id)".
             " where u.id = $user_id and u.team_id = $this->team_id and u.status is not null".
             " and (r.rank < $this->rank or (r.rank = $this->rank and u.id = $this->id))"; // Users with lesser roles or self.