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.
30 lines
1.2 KiB
C#
30 lines
1.2 KiB
C#
// <copyright file="FirstTimeSetupRequirement.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace Jellyfin.Api.Auth.FirstTimeSetupPolicy
|
|
{
|
|
using Jellyfin.Api.Auth.DefaultAuthorizationPolicy;
|
|
|
|
/// <summary>
|
|
/// The authorization requirement, requiring incomplete first time setup or default privileges, for the authorization handler.
|
|
/// </summary>
|
|
public class FirstTimeSetupRequirement : DefaultAuthorizationRequirement
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="FirstTimeSetupRequirement"/> class.
|
|
/// </summary>
|
|
/// <param name="validateParentalSchedule">A value indicating whether to ignore parental schedule.</param>
|
|
/// <param name="requireAdmin">A value indicating whether administrator role is required.</param>
|
|
public FirstTimeSetupRequirement(bool validateParentalSchedule = false, bool requireAdmin = true) : base(validateParentalSchedule)
|
|
{
|
|
RequireAdmin = requireAdmin;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether administrator role is required.
|
|
/// </summary>
|
|
public bool RequireAdmin { get; }
|
|
}
|
|
}
|