Skip to content

Commit

Permalink
add alert
Browse files Browse the repository at this point in the history
  • Loading branch information
senk8 committed Mar 15, 2024
1 parent 4cb2167 commit ebc6189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (p *ProjectService) createDefaultRole(ctx context.Context, ownerUserID, pro
findingEditor := "finding-editor"
viewerActionPtn := "get|list|is-admin|put-alert-first-viewed-at"

for name, actionPtn := range map[string]string{projectAdmin: ".*", projectViewer: viewerActionPtn, findingEditor: viewerActionPtn + "|/finding/.+"} {
for name, actionPtn := range map[string]string{projectAdmin: ".*", projectViewer: viewerActionPtn, findingEditor: viewerActionPtn + "|/finding/.+|/alert/.+"} {
policy, err := p.iamClient.PutPolicy(ctx, &iam.PutPolicyRequest{
ProjectId: projectID,
Policy: &iam.PolicyForUpsert{
Expand Down

0 comments on commit ebc6189

Please sign in to comment.