This commit is contained in:
Patrick Fic
2021-04-22 10:23:09 -07:00
parent 08faff4d8e
commit be6ff42e57
2 changed files with 1 additions and 15 deletions

View File

@@ -53,14 +53,6 @@ export function HasRbacAccess({
requiredAuthLevel,
action,
}) {
console.log(
"Checking access for action",
action,
bodyshop.md_rbac[action],
authLevel,
bodyshop.md_rbac[action] <= authLevel
);
return (
(requiredAuthLevel && requiredAuthLevel <= authLevel) ||
((bodyshop.md_rbac && bodyshop.md_rbac[action]) || rbacDefaults[action]) <=

View File

@@ -1,10 +1,4 @@
import {
ApolloClient,
ApolloLink,
InMemoryCache,
operationName,
split,
} from "@apollo/client";
import { ApolloClient, ApolloLink, InMemoryCache, split } from "@apollo/client";
import { setContext } from "@apollo/client/link/context";
import { HttpLink } from "@apollo/client/link/http"; //"apollo-link-http";
import { RetryLink } from "@apollo/client/link/retry";