20831: Make the IsAdmin and IsInvited pointers so they are nullable
[arvados.git] / services / keepproxy / keepproxy.go
index 2090c506869d69419ffff32d14abf0aa7bfd58fd..964eaa7bdf442f5d08f1cb681930c2394e2cafaa 100644 (file)
@@ -151,7 +151,7 @@ func (h *proxyHandler) checkAuthorizationHeader(req *http.Request) (pass bool, t
                return false, "", nil
        }
 
-       if userCurrentError == nil && user.IsAdmin {
+       if userCurrentError == nil && *user.IsAdmin {
                // checking userCurrentError is probably redundant,
                // IsAdmin would be false anyway. But can't hurt.
                if op == "read" && !h.cluster.Collections.KeepproxyPermission.Admin.Download {