mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
fix: only owner or team owner can change app's owner (#3033)
This commit is contained in:
@@ -409,12 +409,13 @@ const ListItem = () => {
|
|||||||
)}
|
)}
|
||||||
{!!editPerApp && (
|
{!!editPerApp && (
|
||||||
<ConfigPerModal
|
<ConfigPerModal
|
||||||
onChangeOwner={(tmbId: string) =>
|
{...(editPerApp.permission.isOwner && {
|
||||||
changeOwner({
|
onChangeOwner: (tmbId: string) =>
|
||||||
appId: editPerApp._id,
|
changeOwner({
|
||||||
ownerId: tmbId
|
appId: editPerApp._id,
|
||||||
}).then(() => loadMyApps())
|
ownerId: tmbId
|
||||||
}
|
}).then(() => loadMyApps())
|
||||||
|
})}
|
||||||
refetchResource={loadMyApps}
|
refetchResource={loadMyApps}
|
||||||
hasParent={Boolean(parentId)}
|
hasParent={Boolean(parentId)}
|
||||||
resumeInheritPermission={onResumeInheritPermission}
|
resumeInheritPermission={onResumeInheritPermission}
|
||||||
|
Reference in New Issue
Block a user