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

Commitde5be5f

Browse files
committed
fix comments
1 parentd818498 commitde5be5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎codersdk/roles.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type Permission struct {
5050
ActionRBACAction`json:"action"`
5151
}
5252

53-
// Role is a longer form of SlimRoleused to edit custom roles.
53+
// Role is a longer form of SlimRolethat includes permissions details.
5454
typeRolestruct {
5555
Namestring`json:"name" table:"name,default_sort" validate:"username"`
5656
OrganizationIDstring`json:"organization_id,omitempty" table:"organization_id" format:"uuid"`
@@ -61,7 +61,7 @@ type Role struct {
6161
UserPermissions []Permission`json:"user_permissions" table:"user_permissions"`
6262
}
6363

64-
//Role is a longer form of SlimRole used to edit custom roles.
64+
//PatchRoleRequest is used to edit custom roles.
6565
typePatchRoleRequeststruct {
6666
Namestring`json:"name" table:"name,default_sort" validate:"username"`
6767
DisplayNamestring`json:"display_name" table:"display_name"`

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp