REST status or v2/server/status now checks for a permission to display ips to the caller. The only way to get this enabled is to use securetokenendpoint config option.
Refactored a tsplayer method.
This commit is contained in:
parent
4c5c2ba0de
commit
ec9cb09cd8
3 changed files with 52 additions and 38 deletions
|
|
@ -83,5 +83,8 @@ namespace Rests
|
|||
|
||||
[Description("REST user can run raw TShock commands (the raw command permissions are also checked though).")]
|
||||
public static readonly string restrawcommand = "tshock.rest.command";
|
||||
|
||||
[Description("REST user can view the ips of players.")]
|
||||
public static readonly string viewips = "tshock.rest.viewips";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue