src/OrchardCore.Modules/OrchardCore.Contents/Controllers/ApiController.cs
[HttpDelete]
[Route("{contentItemId}")]
public async Task<IActionResult> Delete(string contentItemId)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.AccessContentApi))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs
[Admin]
public async Task<ActionResult> Edit(string contentItemId)
{
var contentItem = await _contentManager.GetAsync(contentItemId);
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs
[Admin, HttpPost, ActionName("Edit")]
public async Task<ActionResult> EditPost(string contentItemId)
{
var contentItem = await _contentManager.GetAsync(contentItemId);
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Deployment/Controllers/DeploymentPlanController.cs
}
public async Task<IActionResult> Edit(long id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageDeploymentPlan))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Deployment/Controllers/DeploymentPlanController.cs
[HttpPost]
public async Task<IActionResult> Delete(long id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageDeploymentPlan))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Deployment/Controllers/StepController.cs
}
public async Task<IActionResult> Edit(long id, string stepId)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageDeploymentPlan))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Deployment/Controllers/StepController.cs
[HttpPost]
public async Task<IActionResult> Delete(long id, string stepId)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageDeploymentPlan))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Deployment.Remote/Controllers/RemoteClientController.cs
[HttpPost]
public async Task<IActionResult> Delete(string id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageRemoteClients))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Deployment.Remote/Controllers/RemoteClientController.cs
}
public async Task<IActionResult> Edit(string id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageRemoteClients))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Deployment.Remote/Controllers/RemoteInstanceController.cs
[HttpPost]
public async Task<IActionResult> Delete(string id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageRemoteInstances))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Deployment.Remote/Controllers/RemoteInstanceController.cs
}
public async Task<IActionResult> Edit(string id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageRemoteInstances))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Layers/Controllers/LayerRuleController.cs
}
public async Task<IActionResult> Edit(string name, string conditionId)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageLayers))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Layers/Controllers/LayerRuleController.cs
[HttpPost]
public async Task<IActionResult> Delete(string name, string conditionId)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageLayers))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.OpenId/Controllers/ApplicationController.cs
}
public async Task<IActionResult> Edit(string id, string returnUrl = null)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageApplications))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.OpenId/Controllers/ApplicationController.cs
[HttpPost]
public async Task<IActionResult> Delete(string id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageApplications))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.OpenId/Controllers/ScopeController.cs
}
public async Task<IActionResult> Edit(string id, string returnUrl = null)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageScopes))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.OpenId/Controllers/ScopeController.cs
[HttpPost]
public async Task<IActionResult> Delete(string id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageScopes))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Sitemaps/Controllers/SitemapIndexController.cs
[HttpPost]
public async Task<IActionResult> Delete(string sitemapId)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageSitemaps))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Sitemaps/Controllers/SitemapIndexController.cs
}
public async Task<IActionResult> Edit(string sitemapId)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageSitemaps))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Sitemaps/Controllers/SourceController.cs
}
public async Task<IActionResult> Edit(string sitemapId, string sourceId)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageSitemaps))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Sitemaps/Controllers/SourceController.cs
[HttpPost]
public async Task<IActionResult> Delete(string sitemapId, string sourceId)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageSitemaps))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs
}
public async Task<IActionResult> Edit(string id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageTenantFeatureProfiles))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs
[HttpPost]
public async Task<IActionResult> Delete(string id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageTenantFeatureProfiles))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Workflows/Controllers/ActivityController.cs
}
public async Task<IActionResult> Edit(long workflowTypeId, string activityId, string returnUrl)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageWorkflows))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Workflows/Controllers/WorkflowController.cs
[HttpPost]
public async Task<IActionResult> Delete(long id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageWorkflows))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Workflows/Controllers/WorkflowController.cs
[ActionName(nameof(Index))]
[FormValueRequired("submit.BulkAction")]
public async Task<IActionResult> BulkEdit(long workflowTypeId, WorkflowIndexOptions options, PagerParameters pagerParameters, IEnumerable<long> itemIds)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageWorkflows))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Workflows/Controllers/WorkflowTypeController.cs
}
public async Task<IActionResult> Edit(long id, string localId)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageWorkflows))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Workflows/Controllers/WorkflowTypeController.cs
[HttpPost]
public async Task<IActionResult> Delete(long id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageWorkflows))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Workflows/Controllers/WorkflowTypeController.cs
}
public async Task<IActionResult> EditProperties(long? id, string returnUrl = null)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageWorkflows))
This method does verify which users should be able to access resources of the provided ID.
src/OrchardCore.Modules/OrchardCore.Workflows/Controllers/WorkflowTypeController.cs
[HttpPost]
public async Task<IActionResult> EditProperties(WorkflowTypePropertiesViewModel viewModel, long? id)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageWorkflows))
This method does verify which users should be able to access resources of the provided ID.