mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-19 06:28:03 +00:00
Fix: #2590 not allow users (even if they own the entity) to update lineage without the "Update Lineage" permission. (#2648)
This commit is contained in:
parent
888e225544
commit
e38963d7c2
@ -89,7 +89,6 @@ const Entitylineage: FunctionComponent<EntityLineageProp> = ({
|
||||
addLineageHandler,
|
||||
removeLineageHandler,
|
||||
entityLineageHandler,
|
||||
isOwner,
|
||||
}: EntityLineageProp) => {
|
||||
const showToast = useToastContext();
|
||||
const { userPermissions, isAuthDisabled, isAdminUser } = useAuth();
|
||||
@ -670,7 +669,6 @@ const Entitylineage: FunctionComponent<EntityLineageProp> = ({
|
||||
<p>You do not have permission to edit the lineage</p>
|
||||
</>
|
||||
}
|
||||
isOwner={isOwner}
|
||||
permission={Operation.UpdateLineage}>
|
||||
<ControlButton
|
||||
className={classNames(
|
||||
@ -683,8 +681,7 @@ const Entitylineage: FunctionComponent<EntityLineageProp> = ({
|
||||
'tw-opacity-40':
|
||||
!userPermissions[Operation.UpdateLineage] &&
|
||||
!isAuthDisabled &&
|
||||
!isAdminUser &&
|
||||
!isOwner,
|
||||
!isAdminUser,
|
||||
}
|
||||
)}
|
||||
onClick={() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user