Skip to content

Commit de5be5f

Browse files
committed
fix comments
1 parent d818498 commit de5be5f

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
Action RBACAction `json:"action"`
5151
}
5252

53-
// Role is a longer form of SlimRole used to edit custom roles.
53+
// Role is a longer form of SlimRole that includes permissions details.
5454
type Role struct {
5555
Name string `json:"name" table:"name,default_sort" validate:"username"`
5656
OrganizationID string `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
type PatchRoleRequest struct {
6666
Name string `json:"name" table:"name,default_sort" validate:"username"`
6767
DisplayName string `json:"display_name" table:"display_name"`

0 commit comments

Comments
 (0)