mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 05:23:33 +08:00
Updated Admin filter and access control
AdminController convention or [Admin] attribute activates both the security check and "TheAdmin" theme --HG-- branch : dev
This commit is contained in:
@@ -6,10 +6,11 @@ using Orchard.Blogs.ViewModels;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Mvc.Results;
|
||||
using Orchard.UI.Admin;
|
||||
using Orchard.UI.Notify;
|
||||
|
||||
namespace Orchard.Blogs.Controllers {
|
||||
[ValidateInput(false)]
|
||||
[ValidateInput(false), Admin]
|
||||
public class BlogPostAdminController : Controller, IUpdateModel {
|
||||
private readonly IBlogService _blogService;
|
||||
private readonly IBlogPostService _blogPostService;
|
||||
|
Reference in New Issue
Block a user