Renamed roles and trans keys "Limited"->"Restricted" "Full" -> ""
This commit is contained in:
@@ -294,8 +294,8 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
//If the server is ops only then this user needs to be ops or else they are not allowed in
|
||||
if (serverState.IsOpsOnly &&
|
||||
!u.Roles.HasFlag(Biz.AuthorizationRoles.OpsAdminFull) &&
|
||||
!u.Roles.HasFlag(Biz.AuthorizationRoles.OpsAdminLimited))
|
||||
!u.Roles.HasFlag(Biz.AuthorizationRoles.OpsAdmin) &&
|
||||
!u.Roles.HasFlag(Biz.AuthorizationRoles.OpsAdminRestricted))
|
||||
{
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user