You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!d || d.forceRefresh || i) if (r.apiInfo("selfsubjectrulesreviews")) {
73769
-
n.log("AuthorizationService, loading user rules for " + t + " project");
73770
-
var f = {
73769
+
if (f[t]) return f[t];
73770
+
n.log("AuthorizationService, loading user rules for " + t + " project"), f[t] = c.promise;
73771
+
var p = {
73771
73772
kind: "SelfSubjectRulesReview",
73772
73773
apiVersion: "v1"
73773
73774
};
73774
-
o.create("selfsubjectrulesreviews", null, f, {
73775
+
o.create("selfsubjectrulesreviews", null, p, {
73775
73776
namespace: t
73776
73777
}).then(function(e) {
73777
73778
var n = u(e.status.rules), i = h(e.status.rules);
@@ -73783,19 +73784,21 @@ cacheTimestamp: _.now()
73783
73784
}), c.resolve();
73784
73785
}, function() {
73785
73786
l = !0, c.resolve();
73787
+
}).finally(function() {
73788
+
delete f[t];
73786
73789
});
73787
73790
} else n.log("AuthorizationService, resource 'selfsubjectrulesreviews' is not part of APIserver. Switching into permissive mode."), l = !0, c.resolve(); else n.log("AuthorizationService, using cached rules for " + t + " project"), _.now() - d.cacheTimestamp >= 6e5 && (d.forceRefresh = !0), c.resolve();
73788
73791
return c.promise;
73789
73792
},
73790
73793
canI: function(e, t, n) {
73791
73794
if (l) return !0;
73792
-
var i = r.toResourceGroupVersion(e), o = f(n || a);
0 commit comments