mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add AuthorizeAttribute to all admin controllers
This commit is contained in:
@@ -6,10 +6,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class AtasController : Controller
|
public class AtasController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class BlockDescriptorsController : Controller
|
public class BlockDescriptorsController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class ChsController : Controller
|
public class ChsController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class CommandsController : Controller
|
public class CommandsController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class CompactDiscOffsetsController : Controller
|
public class CompactDiscOffsetsController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class DensityCodesController : Controller
|
public class DensityCodesController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class DeviceStatsController : Controller
|
public class DeviceStatsController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class DevicesController : Controller
|
public class DevicesController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class FilesystemsController : Controller
|
public class FilesystemsController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class FiltersController : Controller
|
public class FiltersController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class FireWiresController : Controller
|
public class FireWiresController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class MediaFormatsController : Controller
|
public class MediaFormatsController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class MediasController : Controller
|
public class MediasController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class MmcController : Controller
|
public class MmcController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class MmcFeaturesController : Controller
|
public class MmcFeaturesController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class MmcSdsController : Controller
|
public class MmcSdsController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class OperatingSystemsController : Controller
|
public class OperatingSystemsController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class PartitionsController : Controller
|
public class PartitionsController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class PcmciasController : Controller
|
public class PcmciasController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class ReportsController : Controller
|
public class ReportsController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class ScsiModesController : Controller
|
public class ScsiModesController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class ScsiPagesController : Controller
|
public class ScsiPagesController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class ScsisController : Controller
|
public class ScsisController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class SscsController : Controller
|
public class SscsController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class SupportedDensitiesController : Controller
|
public class SupportedDensitiesController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class TestedMediasController : Controller
|
public class TestedMediasController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class TestedSequentialMediasController : Controller
|
public class TestedSequentialMediasController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
@@ -9,6 +10,7 @@ using Microsoft.EntityFrameworkCore.Query;
|
|||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class UsbProductsController : Controller
|
public class UsbProductsController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class UsbVendorsController : Controller
|
public class UsbVendorsController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class UsbsController : Controller
|
public class UsbsController : Controller
|
||||||
{
|
{
|
||||||
private readonly DicServerContext _context;
|
private readonly DicServerContext _context;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||||
{
|
{
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
|
[Authorize]
|
||||||
public class VersionsController : Controller
|
public class VersionsController : Controller
|
||||||
{
|
{
|
||||||
readonly DicServerContext _context;
|
readonly DicServerContext _context;
|
||||||
|
|||||||
Reference in New Issue
Block a user