gql_cataclysm
noah metz 2023-07-31 18:47:58 -06:00
parent 059c36663b
commit 0cc7174667
1 changed files with 5 additions and 1 deletions

@ -912,7 +912,11 @@ func NewGQLExtContext() *GQLExtContext {
} }
sig := StringSignal{NewDirectSignal(GQLStateSignalType), "stop_server"} sig := StringSignal{NewDirectSignal(GQLStateSignalType), "stop_server"}
err = ctx.Context.Send(ctx.User, ctx.Server.ID, sig) err = Allowed(ctx.Context, ctx.User, sig.Permission(), ctx.Server)
if err != nil {
return nil, err
}
err = ctx.Context.Send(ctx.Server.ID, ctx.Server.ID, sig)
if err != nil { if err != nil {
return nil, err return nil, err
} }