Skip to content

Commit

Permalink
change user to editor when adding user to a project
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Nov 12, 2024
1 parent 5b467bb commit cc97e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/Testing/ApiTests/ProjectPermissionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ public async Task ConfidentialProject_NonManagerCannotSeeProjectMembers()
await LoginAs("manager");
await using var project = await this.RegisterProjectInLexBox(Utils.GetNewProjectConfig(isConfidential: true));
await LoginAs("manager");
await AddUserToProject(project.Id, "user");
await AddUserToProject(project.Id, "editor");
MustHaveMembers(GetProject(await QueryProject(project.Code)), count: 2);
await LoginAs("user");
await LoginAs("editor");
var json = GetProject(await QueryProject(project.Code));
MustHaveOnlyUserAsMember(json, CurrentUser.Id);
}
Expand Down

0 comments on commit cc97e73

Please sign in to comment.