Skip to content

Commit d41e95a

Browse files
committed
update comment
1 parent ce87f77 commit d41e95a

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

coderd/database/migrations/000209_custom_roles.up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CREATE TABLE custom_roles (
1212
-- site_permissions is '[]Permission'
1313
site_permissions jsonb NOT NULL default '[]',
1414
-- org_permissions is 'map[<org_id>][]Permission'
15-
org_permissions jsonb NOT NULL default '{}',
15+
org_permissions jsonb NOT NULL default '{}',
1616
-- user_permissions is '[]Permission'
1717
user_permissions jsonb NOT NULL default '[]',
1818

coderd/database/models.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/querier.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries.sql.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/rbac/roles.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,8 @@ type Role struct {
418418
}
419419

420420
// Valid will check all it's permissions and ensure they are all correct
421-
// according to the policy.
421+
// according to the policy. This verifies every action specified make sense
422+
// for the given resource.
422423
func (role Role) Valid() error {
423424
var errs []error
424425
for _, perm := range role.Site {

0 commit comments

Comments
 (0)