Update FirstTimeSetupHandler.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Bill Thornton 2024-05-31 03:18:33 -04:00 committed by GitHub
parent 35962bcc42
commit a71e2d9f0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ namespace Jellyfin.Api.Auth.FirstTimeSetupPolicy
{ {
context.Succeed(requirement); context.Succeed(requirement);
} }
else if (context.User.GetIsApiKey()) else if (context.User.IsInRole(UserRoles.Administrator))
{ {
context.Succeed(requirement); context.Succeed(requirement);
} }