Skip to content

Commit c930552

Browse files
committed
fix: log
1 parent 2834ca8 commit c930552

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • packages/service/support/permission/app

packages/service/support/permission/app/auth.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ import { type PermissionValueType } from '@fastgpt/global/support/permission/typ
1515
import { AppFolderTypeList, AppTypeEnum } from '@fastgpt/global/core/app/constants';
1616
import { type ParentIdType } from '@fastgpt/global/common/parentFolder/type';
1717
import { type AuthModeType, type AuthResponseType } from '../type';
18-
import { AppReadChatLogPerVal } from '@fastgpt/global/support/permission/app/constant';
18+
import {
19+
AppReadChatLogPerVal,
20+
AppReadChatLogRoleVal
21+
} from '@fastgpt/global/support/permission/app/constant';
1922
import { parseHeaderCert } from '../auth/common';
2023
import { sumPer } from '@fastgpt/global/support/permission/utils';
2124

@@ -80,7 +83,10 @@ export const authAppByTmbId = async ({
8083

8184
return {
8285
...app,
83-
permission: new AppPermission({ isOwner: false, role: ReadRoleVal })
86+
permission: new AppPermission({
87+
isOwner: false,
88+
role: sumPer(ReadRoleVal, AppReadChatLogRoleVal)
89+
})
8490
};
8591
}
8692

0 commit comments

Comments
 (0)