Skip to content

Commit

Permalink
Require GM account for chat RPC routes
Browse files Browse the repository at this point in the history
  • Loading branch information
alborrajo committed May 10, 2024
1 parent 6f0f31a commit 8840902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Arrowgene.Ddon.Rpc.Web/RpcWebServer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Arrowgene.Ddon.GameServer;
using Arrowgene.Ddon.Database.Model;
using Arrowgene.Ddon.GameServer;
using Arrowgene.Ddon.Rpc.Web.Route;
using Arrowgene.Ddon.WebServer;

Expand All @@ -20,7 +21,7 @@ public void Init()
{
_webServer.AddRoute(new SpawnRoute(this));
_webServer.AddRoute(new InfoRoute(this));
_webServer.AddRoute(new ChatRoute(this));
_webServer.AddRoute(new InterceptedRpcWebRoute(this, new ChatRoute(this), new AuthInterceptor(_gameServer.Database, AccountStateType.GameMaster)));
}
}
}
2 changes: 1 addition & 1 deletion Arrowgene.Ddon.Rpc/RpcServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class RpcServer : IRpcExecuter
{
private static readonly ILogger Logger = LogProvider.Logger<Logger>(typeof(RpcServer));

private readonly DdonGameServer _gameServer;
protected readonly DdonGameServer _gameServer;

public RpcServer(DdonGameServer gameServer)
{
Expand Down

0 comments on commit 8840902

Please sign in to comment.