File tree Expand file tree Collapse file tree
packages/service/support/permission/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ import { type PermissionValueType } from '@fastgpt/global/support/permission/typ
1515import { AppFolderTypeList , AppTypeEnum } from '@fastgpt/global/core/app/constants' ;
1616import { type ParentIdType } from '@fastgpt/global/common/parentFolder/type' ;
1717import { 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' ;
1922import { parseHeaderCert } from '../auth/common' ;
2023import { 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
You can’t perform that action at this time.
0 commit comments