Skip to content

Commit 6a7093f

Browse files
committed
Add [AbpMvcAuthorize] attributes to all application controllers.
1 parent 76a405c commit 6a7093f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Controllers/AboutController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace AbpCompanyName.AbpProjectName.Web.Controllers
55
{
6+
[AbpMvcAuthorize]
67
public class AboutController : AbpProjectNameControllerBase
78
{
89
public ActionResult Index()

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Controllers/HomeController.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
using AbpCompanyName.AbpProjectName.Controllers;
1+
using Abp.AspNetCore.Mvc.Authorization;
2+
using AbpCompanyName.AbpProjectName.Controllers;
23
using Microsoft.AspNetCore.Mvc;
34

45
namespace AbpCompanyName.AbpProjectName.Web.Controllers
56
{
7+
[AbpMvcAuthorize]
68
public class HomeController : AbpProjectNameControllerBase
79
{
810
public ActionResult Index()

0 commit comments

Comments
 (0)