new controller auth parameter should take precedence over legacy

This commit is contained in:
Shaun Walker
2021-06-06 10:03:54 -04:00
parent a2b808fde2
commit 357ef09dd1
3 changed files with 7 additions and 7 deletions

View File

@ -28,7 +28,7 @@ namespace Oqtane.Controllers
}
}
// legacy support
if (accessor.HttpContext.Request.Query.ContainsKey("entityid"))
if (_authEntityId.Count == 0 && accessor.HttpContext.Request.Query.ContainsKey("entityid"))
{
_entityId = int.Parse(accessor.HttpContext.Request.Query["entityid"]);
}