This commit is contained in:
@@ -52,7 +52,7 @@ namespace AyaNova.Api.Controllers
|
||||
[HttpGet("list/{enumkey}")]
|
||||
public async Task<IActionResult> GetList([FromRoute] string enumkey)
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
if (serverState.IsClosed && UserIdFromContext.Id(HttpContext.Items) != 1)//bypass for superuser to fix fundamental problems
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
var ret = await GetEnumList(enumkey, UserTranslationIdFromContext.Id(HttpContext.Items), UserRolesFromContext.Roles(HttpContext.Items));
|
||||
return Ok(ApiOkResponse.Response(ret));
|
||||
@@ -76,7 +76,7 @@ namespace AyaNova.Api.Controllers
|
||||
ret.Add(new KeyValuePair<string, string>("outsideusertype", "AyaNova user account types for customer / headoffice users"));
|
||||
ret.Add(new KeyValuePair<string, string>(StringUtil.TrimTypeName(typeof(AuthorizationRoles).ToString()), "AyaNova user account role types"));
|
||||
ret.Add(new KeyValuePair<string, string>(StringUtil.TrimTypeName(typeof(AyaType).ToString()), "All AyaNova object types untranslated"));
|
||||
ret.Add(new KeyValuePair<string, string>("alltranslated", "All AyaNova object types translated"));
|
||||
ret.Add(new KeyValuePair<string, string>("alltranslated", "All AyaNova object types translated"));
|
||||
ret.Add(new KeyValuePair<string, string>("coreall", "All Core AyaNova business object types"));
|
||||
ret.Add(new KeyValuePair<string, string>("coreview", "All Core AyaNova business object types current user is allowed to view"));
|
||||
ret.Add(new KeyValuePair<string, string>("coreedit", "All Core AyaNova business object types current user is allowed to edit"));
|
||||
|
||||
Reference in New Issue
Block a user