mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
26 lines
850 B
C#
26 lines
850 B
C#
using Jellyfin.Data.Enums;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace Jellyfin.Api.Auth.SyncPlayAccessPolicy
|
|
{
|
|
/// <summary>
|
|
/// The default authorization requirement.
|
|
/// </summary>
|
|
public class SyncPlayAccessRequirement : IAuthorizationRequirement
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SyncPlayAccessRequirement"/> class.
|
|
/// </summary>
|
|
/// <param name="requiredAccess">A value of <see cref="SyncPlayAccessRequirementType"/>.</param>
|
|
public SyncPlayAccessRequirement(SyncPlayAccessRequirementType requiredAccess)
|
|
{
|
|
RequiredAccess = requiredAccess;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the required SyncPlay access.
|
|
/// </summary>
|
|
public SyncPlayAccessRequirementType RequiredAccess { get; }
|
|
}
|
|
}
|