diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-03-19 09:23:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-19 09:23:32 +0100 |
| commit | e1c6bb0482230fd37cee352a169f2d3c441468e8 (patch) | |
| tree | 2c21bbebe05fc603c5367ab3b3dbdf28b92d147d /tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs | |
| parent | 9857c21717380261e11ec948c3520a673ffd83ae (diff) | |
| parent | 85da0b50e2e9686a0d660e2c2138709937c2fee2 (diff) | |
Merge pull request #5561 from barronpm/permissions-fix
Diffstat (limited to 'tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs')
| -rw-r--r-- | tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs b/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs index ee20cc573..de03aa5f5 100644 --- a/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs +++ b/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs @@ -128,6 +128,8 @@ namespace Jellyfin.Api.Tests.Auth { var authorizationInfo = _fixture.Create<AuthorizationInfo>(); authorizationInfo.User = _fixture.Create<User>(); + authorizationInfo.User.AddDefaultPermissions(); + authorizationInfo.User.AddDefaultPreferences(); authorizationInfo.User.SetPermission(PermissionKind.IsAdministrator, isAdmin); authorizationInfo.IsApiKey = false; |
