-
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: task possible assignees (#2644)
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ class TaskTestData : BaseTestData("tasksTestUser", "Project with tasks") { | |
var orgMember: UserAccountBuilder | ||
var projectViewScopeUser: UserAccountBuilder | ||
var projectViewRoleUser: UserAccountBuilder | ||
var projectManageRoleUser: UserAccountBuilder | ||
var translateTask: TaskBuilder | ||
var reviewTask: TaskBuilder | ||
var relatedProject: ProjectBuilder | ||
|
@@ -64,6 +65,12 @@ class TaskTestData : BaseTestData("tasksTestUser", "Project with tasks") { | |
name = "Project view role user (en)" | ||
} | ||
|
||
projectManageRoleUser = | ||
root.addUserAccount { | ||
username = "[email protected]" | ||
name = "Project manage role user (en)" | ||
} | ||
|
||
userAccountBuilder.defaultOrganizationBuilder.apply { | ||
addRole { | ||
user = orgMember.self | ||
|
@@ -91,6 +98,11 @@ class TaskTestData : BaseTestData("tasksTestUser", "Project with tasks") { | |
type = ProjectPermissionType.EDIT | ||
} | ||
|
||
addPermission { | ||
user = projectManageRoleUser.self | ||
type = ProjectPermissionType.MANAGE | ||
} | ||
|
||
addPermission { | ||
user = projectViewScopeUser.self | ||
scopes = arrayOf(Scope.TRANSLATIONS_VIEW) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters