mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Merge pull request #72 from BinaryAlley/feature/add-missing-authorization-to-controllers
Adds missing authorization to some controllers
This commit is contained in:
7 files changed
+14
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
#region ========================================================================= USING =====================================================================================
|
#region ========================================================================= USING =====================================================================================
|
||||||
using Lumina.Presentation.Web.Common.Api;
|
using Lumina.Presentation.Web.Common.Api;
|
||||||
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
|
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@@ -14,6 +15,7 @@ namespace Lumina.Presentation.Web.Controllers.FileSystemManagement;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Controller for managing file system directories.
|
/// Controller for managing file system directories.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Authorize]
|
||||||
[Route("[controller]")]
|
[Route("[controller]")]
|
||||||
public class DirectoriesController : Controller
|
public class DirectoriesController : Controller
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#region ========================================================================= USING =====================================================================================
|
#region ========================================================================= USING =====================================================================================
|
||||||
using Lumina.Presentation.Web.Common.Api;
|
using Lumina.Presentation.Web.Common.Api;
|
||||||
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
|
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -11,6 +12,7 @@ namespace Lumina.Presentation.Web.Controllers.FileSystemManagement;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Controller for managing file system drives.
|
/// Controller for managing file system drives.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Authorize]
|
||||||
[Route("[controller]")]
|
[Route("[controller]")]
|
||||||
public class DrivesController : Controller
|
public class DrivesController : Controller
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#region ========================================================================= USING =====================================================================================
|
#region ========================================================================= USING =====================================================================================
|
||||||
using Lumina.Presentation.Web.Common.Api;
|
using Lumina.Presentation.Web.Common.Api;
|
||||||
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
|
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -11,6 +12,7 @@ namespace Lumina.Presentation.Web.Controllers.FileSystemManagement;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Controller for managing file systems.
|
/// Controller for managing file systems.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Authorize]
|
||||||
[Route("/file-system")]
|
[Route("/file-system")]
|
||||||
public class FileSystemController : Controller
|
public class FileSystemController : Controller
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#region ========================================================================= USING =====================================================================================
|
#region ========================================================================= USING =====================================================================================
|
||||||
using Lumina.Presentation.Web.Common.Api;
|
using Lumina.Presentation.Web.Common.Api;
|
||||||
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
|
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@@ -14,6 +15,7 @@ namespace Lumina.Presentation.Web.Controllers.FileSystemManagement;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Controller for managing file system files.
|
/// Controller for managing file system files.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Authorize]
|
||||||
[Route("[controller]")]
|
[Route("[controller]")]
|
||||||
public class FilesController : Controller
|
public class FilesController : Controller
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#region ========================================================================= USING =====================================================================================
|
#region ========================================================================= USING =====================================================================================
|
||||||
using Lumina.Presentation.Web.Common.Api;
|
using Lumina.Presentation.Web.Common.Api;
|
||||||
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
|
using Lumina.Presentation.Web.Common.Models.FileSystemManagement;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
@@ -12,6 +13,7 @@ namespace Lumina.Presentation.Web.Controllers.FileSystemManagement;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Controller for managing file system paths.
|
/// Controller for managing file system paths.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Authorize]
|
||||||
[Route("[controller]")]
|
[Route("[controller]")]
|
||||||
public class PathController : Controller
|
public class PathController : Controller
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -2,6 +2,7 @@
|
|||||||
using Lumina.Presentation.Web.Common.Api;
|
using Lumina.Presentation.Web.Common.Api;
|
||||||
using Lumina.Presentation.Web.Common.Enums.Library;
|
using Lumina.Presentation.Web.Common.Enums.Library;
|
||||||
using Lumina.Presentation.Web.Common.Models.Libraries;
|
using Lumina.Presentation.Web.Common.Models.Libraries;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.Formatters;
|
using Microsoft.AspNetCore.Mvc.Formatters;
|
||||||
using System;
|
using System;
|
||||||
@@ -10,6 +11,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace Lumina.Presentation.Web.Controllers.Library.Management;
|
namespace Lumina.Presentation.Web.Controllers.Library.Management;
|
||||||
|
|
||||||
|
[Authorize]
|
||||||
[Route("/library/manage/")]
|
[Route("/library/manage/")]
|
||||||
public class LibraryManagementController : Controller
|
public class LibraryManagementController : Controller
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1,8 +1,10 @@
|
|||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Lumina.Presentation.Web.Controllers.Library.WrittenContentLibrary.BookLibrary;
|
namespace Lumina.Presentation.Web.Controllers.Library.WrittenContentLibrary.BookLibrary;
|
||||||
|
|
||||||
|
[Authorize]
|
||||||
[Route("/library/written-content-library/books-library/books/")]
|
[Route("/library/written-content-library/books-library/books/")]
|
||||||
public class BooksController : Controller
|
public class BooksController : Controller
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user