This commit is contained in:
@@ -19,7 +19,8 @@ namespace Sockeye.Api.ControllerHelpers
|
||||
UNKNOWN = 0,
|
||||
///<summary>No access for anyone API completely locked down. Not set by user but rather by internal server operations like importing or backup.</summary>
|
||||
Closed = 1,
|
||||
|
||||
///<summary>Access only to SuperUser account for migration from Rockfish</summary>
|
||||
MigrateMode = 2,
|
||||
///<summary>Access only to API Operations routes. Can be set by Ops user</summary>
|
||||
OpsOnly = 3,
|
||||
///<summary>Open for all users (default). Can be set by Ops user</summary>
|
||||
@@ -128,7 +129,7 @@ namespace Sockeye.Api.ControllerHelpers
|
||||
throw new System.NotSupportedException("ApiServerState:ApiErrorCode - No error code is associated with server state OPEN");
|
||||
case ServerState.OpsOnly:
|
||||
return ApiErrorCode.API_OPS_ONLY;
|
||||
|
||||
|
||||
case ServerState.Closed:
|
||||
return ApiErrorCode.API_CLOSED;
|
||||
|
||||
@@ -177,7 +178,7 @@ namespace Sockeye.Api.ControllerHelpers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public bool IsOpen
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user