mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +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 && (
|
||||
<ConfigPerModal
|
||||
onChangeOwner={(tmbId: string) =>
|
||||
changeOwner({
|
||||
appId: editPerApp._id,
|
||||
ownerId: tmbId
|
||||
}).then(() => loadMyApps())
|
||||
}
|
||||
{...(editPerApp.permission.isOwner && {
|
||||
onChangeOwner: (tmbId: string) =>
|
||||
changeOwner({
|
||||
appId: editPerApp._id,
|
||||
ownerId: tmbId
|
||||
}).then(() => loadMyApps())
|
||||
})}
|
||||
refetchResource={loadMyApps}
|
||||
hasParent={Boolean(parentId)}
|
||||
resumeInheritPermission={onResumeInheritPermission}
|
||||
|
Reference in New Issue
Block a user