This commit is contained in:
@@ -42,9 +42,11 @@ namespace AyaNova.Api.ControllerHelpers
|
||||
internal void SetSystemLock(string reason)
|
||||
{
|
||||
//Lock down the server for license related issue
|
||||
//Still allows ops routes, treats as if server was set to closed even if they change it to open
|
||||
//Only Manager account (id=1) can login or do anything, treats as if server was set to closed even if they change it to open
|
||||
//only way to reset it is to fetch a valid license
|
||||
SetState(ServerState.OpsOnly, reason);
|
||||
//
|
||||
var msg=$"{reason}\r\nOnly *the* Manager account can login to make changes";
|
||||
SetState(ServerState.OpsOnly, msg);
|
||||
SYSTEM_LOCK = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user