Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f691657

Browse files
committed
fix prebuilds too
1 parent d6757a0 commit f691657

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

coderd/database/dbauthz/dbauthz.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ var (
445445
},
446446
// Should be able to add the prebuilds system user as a member to any organization that needs prebuilds.
447447
rbac.ResourceOrganizationMember.Type: {
448+
policy.ActionRead,
448449
policy.ActionCreate,
449450
},
450451
// Needs to be able to assign roles to the system user in order to make it a member of an organization.
@@ -458,6 +459,10 @@ var (
458459
rbac.ResourceOrganization.Type: {
459460
policy.ActionRead,
460461
},
462+
// Required to read the terraform files of a template
463+
rbac.ResourceFile.Type: {
464+
policy.ActionRead,
465+
},
461466
}),
462467
},
463468
}),

0 commit comments

Comments
 (0)