Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions app/controlplane/pkg/authz/authz.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ var rolesMap = map[Role][]*Policy{
PolicyOrgMetricsRead,
PolicyReferrerRead,
},
// RoleProjectViewer: has read-only permissions on a project
RoleProjectViewer: {
PolicyWorkflowRead,
PolicyWorkflowRunRead,
},
// RoleProjectAdmin: represents a project administrator. It's the higher role in project resources,
// and it's only considered when the org-level role is `RoleOrgMember`
RoleProjectAdmin: {
Expand All @@ -233,9 +238,6 @@ var rolesMap = map[Role][]*Policy{
// integrations
PolicyAttachedIntegrationAttach,
PolicyAttachedIntegrationDetach,

// metrics
PolicyOrgMetricsRead,
},
}

Expand Down
Loading