This commit is contained in:
@@ -138,7 +138,7 @@ namespace AyaNova.Api.Controllers
|
||||
return Ok(ApiOkResponse.Response(new
|
||||
{
|
||||
token = TestToken,
|
||||
name = "Manager Account - TESTING",
|
||||
name = "SuperUser Account - TESTING",
|
||||
roles = "0"
|
||||
}));
|
||||
|
||||
@@ -168,10 +168,10 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
//check if server closed
|
||||
//if it is it means we got here only because there is no license
|
||||
//and only *the* manager account can login now
|
||||
//and only *the* SuperUser account can login now
|
||||
if(serverState.IsClosed){
|
||||
//if not manager account then boot closed
|
||||
//manager account is always ID 1
|
||||
//if not SuperUser account then boot closed
|
||||
//SuperUser account is always ID 1
|
||||
if(u.Id!=1){
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user