File tree 1 file changed +3
-8
lines changed 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,9 @@ func dbauthzAuthorizationContext(m dsl.Matcher) {
44
44
}
45
45
46
46
// testingWithOwnerUser is a lint rule that detects potential permission bugs.
47
- // Calling CreateFirstUser in a test is fine, but we should avoid
48
- // using the the methods of the client passed to it.
49
- // However, using it in coderdtest.* methods is generally OK since
50
- // these are used to setup the test environment.
51
- //
52
- // Similarly, calling clitest.SetupConfig with a client authenticated
53
- // as the Owner user can be a problem, since the CLI will be operating
54
- // as the owner user and we may miss permission bugs.
47
+ // Calling clitest.SetupConfig with a client authenticated as the Owner user
48
+ // can be a problem, since the CLI will be operating as that user and we may
49
+ // miss permission bugs.
55
50
//
56
51
//nolint:unused,deadcode,varnamelen
57
52
func testingWithOwnerUser (m dsl.Matcher ) {
You can’t perform that action at this time.
0 commit comments