mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: Add initial AuthzQuerier implementation (#5919)
feat: Add initial AuthzQuerier implementation - Adds package database/dbauthz that adds a database.Store implementation where each method goes through AuthZ checks - Implements all database.Store methods on AuthzQuerier - Updates and fixes unit tests where required - Updates coderd initialization to use AuthzQuerier if codersdk.ExperimentAuthzQuerier is enabled
This commit is contained in:
@ -1,10 +1,5 @@
|
||||
package slice
|
||||
|
||||
// New is a convenience method for creating []T.
|
||||
func New[T any](items ...T) []T {
|
||||
return items
|
||||
}
|
||||
|
||||
// SameElements returns true if the 2 lists have the same elements in any
|
||||
// order.
|
||||
func SameElements[T comparable](a []T, b []T) bool {
|
||||
@ -67,3 +62,8 @@ func OverlapCompare[T any](a []T, b []T, equal func(a, b T) bool) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// New is a convenience method for creating []T.
|
||||
func New[T any](items ...T) []T {
|
||||
return items
|
||||
}
|
||||
|
Reference in New Issue
Block a user