1
0
mirror of https://github.com/bitwarden/server synced 2025-12-13 06:43:45 +00:00

[SM-1030] Cleanup old access policy management code (#4015)

* Remove access selector code

* Cleanup integration tests
This commit is contained in:
Thomas Avery
2024-05-06 14:56:58 -05:00
committed by GitHub
parent 3715d7d426
commit cd3a45c8c6
26 changed files with 500 additions and 3026 deletions

View File

@@ -169,7 +169,7 @@ public class ProjectsControllerTests : IClassFixture<ApiApplicationFactory>, IAs
Assert.Null(createdProject.DeletedDate);
// Check permissions have been bootstrapped.
var accessPolicies = await _accessPolicyRepository.GetManyByGrantedProjectIdAsync(createdProject.Id, currentUserId);
var accessPolicies = await _accessPolicyRepository.GetPeoplePoliciesByGrantedProjectIdAsync(createdProject.Id, currentUserId);
Assert.NotNull(accessPolicies);
var ap = (UserProjectAccessPolicy)accessPolicies.First();
Assert.Equal(createdProject.Id, ap.GrantedProjectId);