fix(notify): get the receiver corresponding to the role correctly

This commit is contained in:
rainzm
2021-02-18 11:21:25 +08:00
parent c67bd977ee
commit 650e25560c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ type RoleAssignmentsInput struct {
Projects []string `json:"projects"`
Domains []string `json:"domains"`
ProjectDomains []string `json:"project_domains"`
ProjectDomainId string `json:"project_domain_id"`
ProjectDomains []string `json:"project_domains"`
IncludeNames *bool `json:"include_names"`
Effective *bool `json:"effective"`
+1 -1
View File
@@ -458,7 +458,7 @@ func roleAssignmentHandler(ctx context.Context, w http.ResponseWriter, r *http.R
input.Role.Id,
input.Scope.Domain.Id,
input.Scope.Project.Id,
"",
input.ProjectDomainId,
input.Users,
input.Groups,
input.Roles,