Added config setting "RestUseNewPermissionModel" to allow switching between the REST permission models for backward compatibility.
This commit is contained in:
parent
abeddd4c07
commit
f8fbe9b5da
3 changed files with 59 additions and 14 deletions
|
|
@ -256,6 +256,11 @@ namespace TShockAPI
|
|||
[Description("#.#.#. = Red/Blue/Green - RGB Colors for broadcasts. Max value: 255.")] public float[] BroadcastRGB =
|
||||
{127,255,212};
|
||||
|
||||
// TODO: Get rid of this when the old REST permission model is removed.
|
||||
[Description(
|
||||
"Whether the REST API should use the new permission model. Note: The old permission model will become depracted in the future."
|
||||
)] public bool RestUseNewPermissionModel = true;
|
||||
|
||||
/// <summary>
|
||||
/// Reads a configuration file from a given path
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue