Set all admin controllers as requiring authorization.

This commit is contained in:
2019-05-18 03:02:49 +01:00
parent 3706035509
commit 531d23599b
14 changed files with 37 additions and 40 deletions

View File

@@ -31,6 +31,7 @@
using System.Linq;
using System.Threading.Tasks;
using Cicm.Database.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
@@ -39,6 +40,7 @@ using Microsoft.EntityFrameworkCore.Query;
namespace cicm_web.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
public class ProcessorsByMachinesController : Controller
{
readonly cicmContext _context;