mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 05:34:23 -04:00
23 lines
351 B
C#
23 lines
351 B
C#
using System;
|
|
|
|
namespace Kyoo.Models.Attributes
|
|
{
|
|
/// <summary>
|
|
/// Specify permissions needed for the API.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
public class PermissionAttribute : Attribute
|
|
{
|
|
public enum Kind
|
|
{
|
|
Read,
|
|
Write,
|
|
Admin
|
|
}
|
|
|
|
public PermissionAttribute(string type, Kind permission)
|
|
{
|
|
|
|
}
|
|
}
|
|
} |