Oqtane.Client
Oqtane.Package
Oqtane.Server
Content
Controllers
AliasController.cs
FileController.cs
FolderController.cs
InstallationController.cs
JobController.cs
JobLogController.cs
LocalizationController.cs
LogController.cs
ModuleController.cs
ModuleControllerBase.cs
ModuleDefinitionController.cs
NotificationController.cs
PackageController.cs
PageController.cs
PageModuleController.cs
ProfileController.cs
RoleController.cs
SettingController.cs
SiteController.cs
SiteTemplateController.cs
SqlController.cs
SystemController.cs
TenantController.cs
ThemeController.cs
UserController.cs
UserRoleController.cs
Data
Extensions
Infrastructure
Modules
Pages
Properties
Repository
Resources
Scripts
Security
wwwroot
AssemblyInfo.cs
Oqtane.Server.csproj
Program.cs
Startup.cs
appsettings.json
appsettings.release.json
Oqtane.Shared
Oqtane.Test
Oqtane.Upgrade
screenshots
.deployment
.editorconfig
.gitignore
LICENSE
Oqtane.sln
README.md
azuredeploy.json
installer.png
oqtane.png
22 lines
695 B
C#
22 lines
695 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Oqtane.Infrastructure;
|
|
|
|
namespace Oqtane.Controllers
|
|
{
|
|
public class ModuleControllerBase : Controller
|
|
{
|
|
protected readonly ILogManager _logger;
|
|
protected int _entityId = -1; // passed as a querystring parameter for policy authorization and used for validation
|
|
|
|
public ModuleControllerBase(ILogManager logger, IHttpContextAccessor accessor)
|
|
{
|
|
_logger = logger;
|
|
if (accessor.HttpContext.Request.Query.ContainsKey("entityid"))
|
|
{
|
|
_entityId = int.Parse(accessor.HttpContext.Request.Query["entityid"]);
|
|
}
|
|
}
|
|
}
|
|
}
|