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

Commit4d16bfc

Browse files
committed
Update roles
1 parent103ed1f commit4d16bfc

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

‎coderd/rbac/object_gen.go

Lines changed: 8 additions & 9 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/rbac/object_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,14 @@ func TestAllResources(t *testing.T) {
184184
vartypeNames []string
185185
resources:=rbac.AllResources()
186186
for_,r:=rangeresources {
187-
ifr.Type=="" {
188-
t.Errorf("empty type name: %s",r.Type)
187+
ifr.RBACObject().Type=="" {
188+
t.Errorf("empty type name: %s",r.RBACObject().Type)
189189
continue
190190
}
191-
ifslice.Contains(typeNames,r.Type) {
192-
t.Errorf("duplicate type name: %s",r.Type)
191+
ifslice.Contains(typeNames,r.RBACObject().Type) {
192+
t.Errorf("duplicate type name: %s",r.RBACObject().Type)
193193
continue
194194
}
195-
typeNames=append(typeNames,r.Type)
195+
typeNames=append(typeNames,r.RBACObject().Type)
196196
}
197197
}

‎coderd/rbac/policy/policy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ var RBACPermissions = map[string]PermissionDefinition{
244244
"assign_org_role": {
245245
Actions:map[Action]ActionDefinition{
246246
ActionAssign:actDef(0,"ability to assign org scoped roles"),
247+
ActionRead:actDef(0,"view what roles are assignable"),
247248
ActionDelete:actDef(0,"ability to delete org scoped roles"),
248249
},
249250
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp