mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-31 03:22:18 +00:00
4.8.10 perf (#2378)
* perf: helpline code * fix: prompt call stream=false response prefix * fix: app chat log auth * perf: new chat i18n * fix: milvus dataset cannot export data * perf: doc intro
This commit is contained in:
@@ -70,7 +70,7 @@ export async function authChatCrud({
|
||||
|
||||
if (!chat) return { id: outLinkUid };
|
||||
|
||||
// auth req
|
||||
// auth req
|
||||
const { teamId, tmbId, permission } = await authUserPer({
|
||||
...props,
|
||||
per: ReadPermissionVal
|
||||
@@ -81,7 +81,7 @@ export async function authChatCrud({
|
||||
if (permission.isOwner) return { uid: outLinkUid };
|
||||
if (String(tmbId) === String(chat.tmbId)) return { uid: outLinkUid };
|
||||
|
||||
// admin
|
||||
// Admin can manage all chat
|
||||
if (per === WritePermissionVal && permission.hasManagePer) return { uid: outLinkUid };
|
||||
|
||||
return Promise.reject(ChatErrEnum.unAuthChat);
|
||||
|
Reference in New Issue
Block a user