mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 23:22:22 +00:00
fix: permission for favourite apps chatting (#5668)
This commit is contained in:
@@ -114,6 +114,10 @@ export const authAppByTmbId = async ({
|
||||
|
||||
const Per = new AppPermission({ role: sumPer(folderPer, myPer), isOwner });
|
||||
|
||||
if (app.favourite || app.quick) {
|
||||
Per.addRole(ReadRoleVal);
|
||||
}
|
||||
|
||||
if (!Per.checkPer(per)) {
|
||||
return Promise.reject(AppErrEnum.unAuthApp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user