Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit52f1d1c

Browse files
committed
ByOrgID
1 parent6c64621 commit52f1d1c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

‎coderd/rbac/roles.go‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -697,13 +697,15 @@ type Role struct {
697697
// that means the UI should never display it.
698698
DisplayNamestring`json:"display_name"`
699699
Site []Permission`json:"site"`
700-
// Org is a map of organization IDs to permissions. Grouping by organization
701-
// makes roles easy to combine.
702-
Orgmap[string][]Permission`json:"org"`
703-
User []Permission`json:"user"`
704-
// OrgMember is a map of organization IDs to permissions. Grouping by
705-
// organization makes roles easy to combine.
706-
OrgMembermap[string][]Permission`json:"org_member"`
700+
User []Permission`json:"user"`
701+
ByOrgIDmap[string]struct {
702+
// Org is a map of organization IDs to permissions. Grouping by organization
703+
// makes roles easy to combine.
704+
Org []Permission`json:"org"`
705+
// OrgMember is a map of organization IDs to permissions. Grouping by
706+
// organization makes roles easy to combine.
707+
Member []Permission`json:"member"`
708+
}`json:"by_org_id"`
707709

708710
// cachedRegoValue can be used to cache the rego value for this role.
709711
// This is helpful for static roles that never change.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp