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,
|
addLineageHandler,
|
||||||
removeLineageHandler,
|
removeLineageHandler,
|
||||||
entityLineageHandler,
|
entityLineageHandler,
|
||||||
isOwner,
|
|
||||||
}: EntityLineageProp) => {
|
}: EntityLineageProp) => {
|
||||||
const showToast = useToastContext();
|
const showToast = useToastContext();
|
||||||
const { userPermissions, isAuthDisabled, isAdminUser } = useAuth();
|
const { userPermissions, isAuthDisabled, isAdminUser } = useAuth();
|
||||||
@ -670,7 +669,6 @@ const Entitylineage: FunctionComponent<EntityLineageProp> = ({
|
|||||||
<p>You do not have permission to edit the lineage</p>
|
<p>You do not have permission to edit the lineage</p>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
isOwner={isOwner}
|
|
||||||
permission={Operation.UpdateLineage}>
|
permission={Operation.UpdateLineage}>
|
||||||
<ControlButton
|
<ControlButton
|
||||||
className={classNames(
|
className={classNames(
|
||||||
@ -683,8 +681,7 @@ const Entitylineage: FunctionComponent<EntityLineageProp> = ({
|
|||||||
'tw-opacity-40':
|
'tw-opacity-40':
|
||||||
!userPermissions[Operation.UpdateLineage] &&
|
!userPermissions[Operation.UpdateLineage] &&
|
||||||
!isAuthDisabled &&
|
!isAuthDisabled &&
|
||||||
!isAdminUser &&
|
!isAdminUser,
|
||||||
!isOwner,
|
|
||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user