Merge pull request #9159 from umbraco/netcore/feature/enable-sessions

Netcore: Enable session
This commit is contained in:
Bjarke Berg
2020-10-19 09:14:50 +02:00
committed by GitHub
3 changed files with 12 additions and 5 deletions

View File

@@ -24,11 +24,6 @@ namespace Umbraco.Web.BackOffice.Controllers
/// <summary>
/// API controller to deal with Macro data
/// </summary>
/// <remarks>
/// Note that this implements IRequiresSessionState which will enable HttpContext.Session - generally speaking we don't normally
/// enable this for webapi controllers, however since this controller is used to render macro content and macros can access
/// Session, we don't want it to throw null reference exceptions.
/// </remarks>
[PluginController(Constants.Web.Mvc.BackOfficeApiArea)]
public class MacroRenderingController : UmbracoAuthorizedJsonController
{