Skip to content

Commit 30c6568

Browse files
committed
put back interface assertion
1 parent 4c86e44 commit 30c6568

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

coderd/authz/authztest/object.go

Lines changed: 0 additions & 16 deletions
This file was deleted.

coderd/authz/object.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ type OrgResource interface {
1515
OrgOwnerID() string
1616
}
1717

18+
var _ Resource = (*zObject)(nil)
19+
var _ UserResource = (*zObject)(nil)
20+
var _ OrgResource = (*zObject)(nil)
21+
1822
// zObject is used to create objects for authz checks when you have none in
1923
// hand to run the check on.
2024
// An example is if you want to list all workspaces, you can create a zObject

0 commit comments

Comments
 (0)