Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/f984f31896d9f5b34b488efb845d73f901fc9a80
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
7 additions and
7 deletions
@ -38,13 +38,6 @@ namespace Jellyfin.Api.Auth.DefaultAuthorizationPolicy
/// <inheritdoc />
protected override Task HandleRequirementAsync ( AuthorizationHandlerContext context , DefaultAuthorizationRequirement requirement )
{
// Admins can do everything
if ( context . User . GetIsApiKey ( ) | | context . User . IsInRole ( UserRoles . Administrator ) )
{
context . Succeed ( requirement ) ;
return Task . CompletedTask ;
}
var userId = context . User . GetUserId ( ) ;
// This likely only happens during the wizard, so skip the default checks and let any other handlers do it
if ( userId . Equals ( default ) )
@ -62,6 +55,13 @@ namespace Jellyfin.Api.Auth.DefaultAuthorizationPolicy
return Task . CompletedTask ;
}
// Admins can do everything
if ( context . User . GetIsApiKey ( ) | | context . User . IsInRole ( UserRoles . Administrator ) )
{
context . Succeed ( requirement ) ;
return Task . CompletedTask ;
}
// It's not great to have this check, but parental schedule must usually be honored except in a few rare cases
if ( requirement . ValidateParentalSchedule & & ! user . IsParentalScheduleAllowed ( ) )
{