diff --git a/airbyte-webapp/src/core/utils/rbac/rbac.ts b/airbyte-webapp/src/core/utils/rbac/rbac.ts index af91c99b363..c8700f9b2d5 100644 --- a/airbyte-webapp/src/core/utils/rbac/rbac.ts +++ b/airbyte-webapp/src/core/utils/rbac/rbac.ts @@ -2,7 +2,6 @@ import { useListPermissions } from "core/api"; import { useCurrentUser } from "core/services/auth"; import { RbacQuery, RbacQueryWithoutResourceId, useRbacPermissionsQuery } from "./rbacPermissionsQuery"; -import { isCloudApp } from "../app"; /** * Takes a list of permissions and a full or partial query, returning a boolean representing if the user has any permissions satisfying the query @@ -19,7 +18,7 @@ export const useRbac = (query: RbacQuery | RbacQueryWithoutResourceId) => { // invariant check if ((!queryUsesResourceId && resourceId) || (queryUsesResourceId && !resourceId)) { // TODO: This is a patch to handle the fact that workspaces on cloud do not have an organization. - if (resourceType === "ORGANIZATION" && isCloudApp()) { + if (resourceType === "ORGANIZATION") { console.debug("Ignore missing organization id in useRbac."); } else { // this will throw if there is a missing workspace id OR a resourceId is passed to an instance query