11 lines
329 B
C#
11 lines
329 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace WebDesktopBackend.Security.Authorization
|
|
{
|
|
public sealed class AuthorizedAttribute : TypeFilterAttribute
|
|
{
|
|
public AuthorizedAttribute(params string[] permission) : base(typeof(AuthorizedFilter)) {
|
|
Arguments = new object[] { permission };
|
|
}
|
|
}
|
|
} |