Skip to content

Commit

Permalink
fix firsttimesetup
Browse files Browse the repository at this point in the history
  • Loading branch information
cvium committed Feb 9, 2023
1 parent ac118e1 commit c9aef96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public static IServiceCollection AddJellyfinApiAuthorization(this IServiceCollec
.Build();

options.AddPolicy(Policies.Download, new UserPermissionRequirement(PermissionKind.EnableContentDownloading));
options.AddPolicy(Policies.FirstTimeSetupOrDefault, new FirstTimeSetupRequirement());
options.AddPolicy(Policies.FirstTimeSetupOrElevated, new FirstTimeSetupRequirement(requireAdmin: true));
options.AddPolicy(Policies.FirstTimeSetupOrIgnoreParentalControl, new FirstTimeSetupRequirement(validateParentalSchedule: false));
options.AddPolicy(Policies.FirstTimeSetupOrDefault, new FirstTimeSetupRequirement(requireAdmin: false));
options.AddPolicy(Policies.FirstTimeSetupOrElevated, new FirstTimeSetupRequirement());
options.AddPolicy(Policies.FirstTimeSetupOrIgnoreParentalControl, new FirstTimeSetupRequirement(false, false));
options.AddPolicy(Policies.IgnoreParentalControl, new DefaultAuthorizationRequirement(validateParentalSchedule: false));
options.AddPolicy(Policies.SyncPlayHasAccess, new SyncPlayAccessRequirement(SyncPlayAccessRequirementType.HasAccess));
options.AddPolicy(Policies.SyncPlayCreateGroup, new SyncPlayAccessRequirement(SyncPlayAccessRequirementType.CreateGroup));
Expand Down

0 comments on commit c9aef96

Please sign in to comment.