This commit is contained in:
@@ -168,10 +168,10 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
//Valid password, user is effectively authorized at this point
|
||||
|
||||
//check if server closed
|
||||
//if it is it means we got here only because there is no license
|
||||
//and only *the* SuperUser account can login now
|
||||
if (serverState.IsClosed)
|
||||
//check if server available to SuperUser account only (closed or migrate mode)
|
||||
//if it is it means we got here either because there is no license
|
||||
//and only *the* SuperUser account can login now or we're in migrate mode
|
||||
if (serverState.IsClosed || serverState.IsMigrateMode)
|
||||
{
|
||||
//if not SuperUser account then boot closed
|
||||
//SuperUser account is always ID 1
|
||||
|
||||
Reference in New Issue
Block a user