From e38963d7c26befe3fa6bcd82871a763aeebf4c96 Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Mon, 7 Feb 2022 13:18:08 +0530 Subject: [PATCH] Fix: #2590 not allow users (even if they own the entity) to update lineage without the "Update Lineage" permission. (#2648) --- .../src/components/EntityLineage/EntityLineage.component.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/EntityLineage.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/EntityLineage.component.tsx index e8b86ddeee5..c7413541ef8 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/EntityLineage.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/EntityLineage/EntityLineage.component.tsx @@ -89,7 +89,6 @@ const Entitylineage: FunctionComponent = ({ addLineageHandler, removeLineageHandler, entityLineageHandler, - isOwner, }: EntityLineageProp) => { const showToast = useToastContext(); const { userPermissions, isAuthDisabled, isAdminUser } = useAuth(); @@ -670,7 +669,6 @@ const Entitylineage: FunctionComponent = ({

You do not have permission to edit the lineage

} - isOwner={isOwner} permission={Operation.UpdateLineage}> = ({ 'tw-opacity-40': !userPermissions[Operation.UpdateLineage] && !isAuthDisabled && - !isAdminUser && - !isOwner, + !isAdminUser, } )} onClick={() => {