This commit is contained in:
@@ -363,6 +363,22 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Fetch super user status
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns>true or false</returns>
|
||||
[HttpGet("amsu")]
|
||||
public ActionResult GetAMSU()
|
||||
{
|
||||
//This is used by v8 migrate so it doesn't need to decode web tokens
|
||||
if (serverState.IsClosed)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
return Ok(ApiOkResponse.Response(UserIdFromContext.Id(HttpContext.Items)==1));
|
||||
}
|
||||
|
||||
|
||||
//------------
|
||||
|
||||
}//eoc
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace AyaNova.Util
|
||||
/// </summary>
|
||||
internal static class AyaNovaVersion
|
||||
{
|
||||
public const string VersionString = "8.0.0-alpha.95";
|
||||
public const string VersionString = "8.0.0-alpha.96";
|
||||
public const string FullNameAndVersion = "AyaNova server " + VersionString;
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -356,6 +356,8 @@ namespace AyaNova.Util
|
||||
await EraseTableAsync("anotifydeliverylog", conn);
|
||||
await EraseTableAsync("anotifysubscription", conn);
|
||||
|
||||
await EraseTableAsync("amemo", conn);
|
||||
|
||||
|
||||
//Delete from user options table first
|
||||
using (var cmd = new Npgsql.NpgsqlCommand())
|
||||
|
||||
Reference in New Issue
Block a user