Adds missing authorization to some controllers

This commit is contained in:
BinaryAlley committed 2024-11-16 18:21:21 +02:00
1 parent 6d4e0b460a
commit cc9ae2f875
7 files changed
+14

No files matched your search

@@ -1,6 +1,7 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
@@ -14,6 +15,7 @@ namespace Lumina.Presentation.Web.Controllers.FileSystemManagement;
/// <summary>
/// Controller for managing file system directories.
/// </summary>
[Authorize]
[Route("[controller]")]
public class DirectoriesController : Controller
{
@@ -1,6 +1,7 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading;
using System.Threading.Tasks;
@@ -11,6 +12,7 @@ namespace Lumina.Presentation.Web.Controllers.FileSystemManagement;
/// <summary>
/// Controller for managing file system drives.
/// </summary>
[Authorize]
[Route("[controller]")]
public class DrivesController : Controller
{
@@ -1,6 +1,7 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading;
using System.Threading.Tasks;
@@ -11,6 +12,7 @@ namespace Lumina.Presentation.Web.Controllers.FileSystemManagement;
/// <summary>
/// Controller for managing file systems.
/// </summary>
[Authorize]
[Route("/file-system")]
public class FileSystemController : Controller
{
@@ -1,6 +1,7 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
@@ -14,6 +15,7 @@ namespace Lumina.Presentation.Web.Controllers.FileSystemManagement;
/// <summary>
/// Controller for managing file system files.
/// </summary>
[Authorize]
[Route("[controller]")]
public class FilesController : Controller
{
@@ -1,6 +1,7 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading;
@@ -12,6 +13,7 @@ namespace Lumina.Presentation.Web.Controllers.FileSystemManagement;
/// <summary>
/// Controller for managing file system paths.
/// </summary>
[Authorize]
[Route("[controller]")]
public class PathController : Controller
{
@@ -2,6 +2,7 @@
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Enums.Library;
using Lumina.Presentation.Web.Common.Models.Libraries;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Formatters;
using System;
@@ -10,6 +11,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Web.Controllers.Library.Management;
[Authorize]
[Route("/library/manage/")]
public class LibraryManagementController : Controller
{
@@ -1,8 +1,10 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
namespace Lumina.Presentation.Web.Controllers.Library.WrittenContentLibrary.BookLibrary;
[Authorize]
[Route("/library/written-content-library/books-library/books/")]
public class BooksController : Controller
{