Permission (#1687)

Co-authored-by: Archer <545436317@qq.com>
Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
This commit is contained in:
Archer
2024-06-04 17:52:00 +08:00
committed by GitHub
parent fcb915c988
commit 19c8a06d51
109 changed files with 2291 additions and 1091 deletions

View File

@@ -168,7 +168,7 @@ const Dataset = () => {
}}
/>
{/* create icon */}
{userInfo?.team?.canWrite && (
{userInfo?.team?.permission.hasWritePer && (
<MyMenu
offset={[-30, 5]}
width={120}
@@ -276,7 +276,7 @@ const Dataset = () => {
}
}}
>
{userInfo?.team.canWrite && dataset.isOwner && (
{userInfo?.team?.permission.hasWritePer && dataset.isOwner && (
<Box
position={'absolute'}
top={3}