Skip to content

Commit e9d9e9b

Browse files
Users index authorization policy added in webapp
1 parent 6190648 commit e9d9e9b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ApiIntegrationMvc/Areas/Admin/Controllers/UsersController.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
using Microsoft.AspNetCore.Mvc;
1+
using Microsoft.AspNetCore.Authorization;
2+
using Microsoft.AspNetCore.Mvc;
3+
using SharedLibrary.Auth;
24

35
namespace ApiIntegrationMvc.Areas.Admin.Controllers
46
{
57
[Area("Admin")]
68
public class UsersController : Controller
79
{
10+
[Authorize(Policy = PolicyType.WEB_LEVEL)]
811
public IActionResult Index()
912
{
1013
return RedirectToAction("Index", "Home", new { area = "Home" });

0 commit comments

Comments
 (0)