refactoring in preparation for release
This commit is contained in:
@ -44,8 +44,8 @@ namespace Oqtane.Infrastructure
|
||||
Directory.CreateDirectory(sourceFolder);
|
||||
}
|
||||
|
||||
// support for legacy folder locations
|
||||
foreach (var folder in "Modules,Themes".Split(","))
|
||||
// move packages to secure location
|
||||
foreach (var folder in "Modules,Themes,Packages".Split(","))
|
||||
{
|
||||
foreach(var file in Directory.GetFiles(Path.Combine(webRootPath, folder), "*.nupkg"))
|
||||
{
|
||||
|
@ -31,10 +31,6 @@ namespace Oqtane.Security
|
||||
{
|
||||
entityId = int.Parse(ctx.Request.Query["auth" + requirement.EntityName.ToLower() + "id"]);
|
||||
}
|
||||
if (entityId == -1 && ctx.Request.Query.ContainsKey("entityid"))
|
||||
{
|
||||
entityId = int.Parse(ctx.Request.Query["entityid"]);
|
||||
}
|
||||
if (_userPermissions.IsAuthorized(context.User, requirement.EntityName, entityId, requirement.PermissionName))
|
||||
{
|
||||
context.Succeed(requirement);
|
||||
|
Reference in New Issue
Block a user