CI Fix.
This commit is contained in:
@@ -53,14 +53,6 @@ export function HasRbacAccess({
|
|||||||
requiredAuthLevel,
|
requiredAuthLevel,
|
||||||
action,
|
action,
|
||||||
}) {
|
}) {
|
||||||
console.log(
|
|
||||||
"Checking access for action",
|
|
||||||
action,
|
|
||||||
bodyshop.md_rbac[action],
|
|
||||||
authLevel,
|
|
||||||
bodyshop.md_rbac[action] <= authLevel
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
(requiredAuthLevel && requiredAuthLevel <= authLevel) ||
|
(requiredAuthLevel && requiredAuthLevel <= authLevel) ||
|
||||||
((bodyshop.md_rbac && bodyshop.md_rbac[action]) || rbacDefaults[action]) <=
|
((bodyshop.md_rbac && bodyshop.md_rbac[action]) || rbacDefaults[action]) <=
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
import {
|
import { ApolloClient, ApolloLink, InMemoryCache, split } from "@apollo/client";
|
||||||
ApolloClient,
|
|
||||||
ApolloLink,
|
|
||||||
InMemoryCache,
|
|
||||||
operationName,
|
|
||||||
split,
|
|
||||||
} from "@apollo/client";
|
|
||||||
import { setContext } from "@apollo/client/link/context";
|
import { setContext } from "@apollo/client/link/context";
|
||||||
import { HttpLink } from "@apollo/client/link/http"; //"apollo-link-http";
|
import { HttpLink } from "@apollo/client/link/http"; //"apollo-link-http";
|
||||||
import { RetryLink } from "@apollo/client/link/retry";
|
import { RetryLink } from "@apollo/client/link/retry";
|
||||||
|
|||||||
Reference in New Issue
Block a user