Skip to content

Commit

Permalink
Merge pull request #2985 from ZeroK-RTS/sprunk-patch-1
Browse files Browse the repository at this point in the history
Admins can see everybody in lobby
  • Loading branch information
Licho1 authored May 9, 2024
2 parents be3e78a + 7b9b2d3 commit c1b0aa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ZkLobbyServer/ZkLobbyServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ public bool CanUserSee(ConnectedUser uWatcher, ConnectedUser uWatched)
// admins always visible
if (uWatched.User?.IsAdmin == true) return true;

// admins see everybody
if (uWatcher.User?.IsAdmin == true) return true;

// friends see each other
if (uWatcher.FriendNames.Contains(uWatched.Name)) return true;

Expand Down

0 comments on commit c1b0aa2

Please sign in to comment.