authorize: allow access by user id (#1850)

This commit is contained in:
Caleb Doxsey 2021-02-03 07:15:44 -07:00 committed by GitHub
parent 7a5c4fd0f6
commit 25b697a13d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 55 additions and 3 deletions

17
pkg/grpc/config/config.go Normal file
View file

@ -0,0 +1,17 @@
package config
// IsSet returns true if one of the route redirect options has been chosen.
func (rr *RouteRedirect) IsSet() bool {
if rr == nil {
return false
}
return rr.StripQuery != nil ||
rr.ResponseCode != nil ||
rr.PrefixRewrite != nil ||
rr.PathRedirect != nil ||
rr.PortRedirect != nil ||
rr.HostRedirect != nil ||
rr.SchemeRedirect != nil ||
rr.HttpsRedirect != nil
}