Skip to content

Commit

Permalink
Allow friends to join private battles without a password (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
jere0500 authored Jun 9, 2024
1 parent 9b27c07 commit be169e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/teiserver/coordinator/consul_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ defmodule Teiserver.Coordinator.ConsulServer do

state.gatekeeper == "friends" ->
if is_on_friendlist?(userid, state, :all) do
{true, nil}
{true, :allow_friends}
else
{false, "Friends only gatekeeper"}
end
Expand Down
2 changes: 1 addition & 1 deletion lib/teiserver/lobby.ex
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ defmodule Teiserver.Lobby do
Enum.any?([
CacheUser.is_moderator?(user),
Enum.member?(user.roles, "Caster"),
consul_reason == :override_approve
consul_reason in [:override_approve, :allow_friends]
])

ignore_locked =
Expand Down

0 comments on commit be169e6

Please sign in to comment.