We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55ccc1 commit 8afb039Copy full SHA for 8afb039
coderd/database/dbauthz/dbauthz_test.go
@@ -317,10 +317,11 @@ func (s *MethodTestSuite) TestGroup() {
317
s.Run("GetUserGroupNames", s.Subtest(func(db database.Store, check *expects) {
318
o := dbgen.Organization(s.T(), db, database.Organization{})
319
u := dbgen.User(s.T(), db, database.User{})
320
+ g := dbgen.Group(s.T(), db, database.Group{OrganizationID: o.ID})
321
check.Args(database.GetUserGroupNamesParams{
322
OrganizationID: o.ID,
323
UserID: u.ID,
- }).Asserts(rbac.ResourceUserObject(u.ID), rbac.ActionRead)
324
+ }).Asserts(g, rbac.ActionRead)
325
}))
326
327
s.Run("InsertAllUsersGroup", s.Subtest(func(db database.Store, check *expects) {
0 commit comments