]> wagnertech.de Git - timetracker.git/blobdiff - mobile/user_delete.php
Improved getUserDetails to not return info for deleted users.
[timetracker.git] / mobile / user_delete.php
index d8400456a99ba6f167f4d1ec2a0823199d47b745..0e045d018cce25297bea52e67cb449b5332c5e70 100644 (file)
@@ -45,7 +45,6 @@ $user_details = ttUserHelper::getUserDetails($user_id);
 
 // Security checks.
 if (!$user_details || // No details.
-     $user_details['team_id'] <> $user->team_id || // User not in team.
      $user_details['rank'] > $user->rank || // User has a bigger rank.
      ($user_details['rank'] == $user->rank && $user_details['id'] <> $user->id) // Same rank but not us.
    ) {