af1152b001
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
// <copyright file="DefaultAuthorizationRequirement.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace Jellyfin.Api.Auth.DefaultAuthorizationPolicy
|
|
{
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
/// <summary>
|
|
/// The default authorization requirement.
|
|
/// </summary>
|
|
public class DefaultAuthorizationRequirement : IAuthorizationRequirement
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="DefaultAuthorizationRequirement"/> class.
|
|
/// </summary>
|
|
/// <param name="validateParentalSchedule">A value indicating whether to validate parental schedule.</param>
|
|
public DefaultAuthorizationRequirement(bool validateParentalSchedule = true)
|
|
{
|
|
ValidateParentalSchedule = validateParentalSchedule;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether to ignore parental schedule.
|
|
/// </summary>
|
|
public bool ValidateParentalSchedule { get; }
|
|
}
|
|
}
|