mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Adds authorization roles administrator dashboard
This commit is contained in:
1 parent
290af03c83
commit
1df31515fb
191 files changed
+6189
-806
No files matched your search
@@ -1,5 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Enums.Authorization;
|
||||
using Lumina.Presentation.Web.Common.Filters.TypeFilters;
|
||||
using Lumina.Presentation.Web.Common.Models.Authorization;
|
||||
#endregion
|
||||
@@ -18,7 +17,7 @@ public class RequireRoleAttribute : ApiAuthorizationAttribute
|
||||
/// Initializes a new instance of the <see cref="RequireRoleAttribute"/> class.
|
||||
/// </summary>
|
||||
/// <param name="roles">One or more roles that are allowed to access the endpoint.</param>
|
||||
public RequireRoleAttribute(params AuthorizationRole[] roles) : base()
|
||||
public RequireRoleAttribute(params string[] roles) : base()
|
||||
{
|
||||
Arguments = [new AuthorizationRequirementModel { Roles = roles }];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user