mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
feat: add template RBAC/groups (#4235)
This commit is contained in:
@ -51,3 +51,8 @@ func IsConnectionErr(err error) bool {
|
||||
|
||||
return xerrors.As(err, &dnsErr) || xerrors.As(err, &opErr)
|
||||
}
|
||||
|
||||
func AsError(err error) (*Error, bool) {
|
||||
var e *Error
|
||||
return e, xerrors.As(err, &e)
|
||||
}
|
||||
|
Reference in New Issue
Block a user