use new service auth pattern in module template

This commit is contained in:
Shaun Walker
2021-06-04 15:01:25 -04:00
parent 970845d640
commit a2b808fde2
2 changed files with 7 additions and 7 deletions

View File

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