Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
3fb1ff26
authored
Aug 26, 2025
by
伍闲犬
Committed by
GitHub
Aug 26, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: read permission; incorrect name; redirect (#5541)
parent
93e9cb67
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
packages/service/support/permission/app/auth.ts
+5
-7
projects/app/src/pageComponents/chat/ChatSetting/index.tsx
+3
-1
projects/app/src/pageComponents/chat/UserAvatarPopover.tsx
+1
-1
No files found.
packages/service/support/permission/app/auth.ts
View file @
3fb1ff26
...
@@ -88,13 +88,6 @@ export const authAppByTmbId = async ({
...
@@ -88,13 +88,6 @@ export const authAppByTmbId = async ({
};
};
}
}
if
(
app
.
favourite
||
app
.
quick
)
{
return
{
...
app
,
permission
:
new
AppPermission
({
isOwner
:
false
,
role
:
ReadRoleVal
})
};
}
const
isOwner
=
tmbPer
.
isOwner
||
String
(
app
.
tmbId
)
===
String
(
tmbId
);
const
isOwner
=
tmbPer
.
isOwner
||
String
(
app
.
tmbId
)
===
String
(
tmbId
);
const
{
Per
}
=
await
(
async
()
=>
{
const
{
Per
}
=
await
(
async
()
=>
{
...
@@ -119,6 +112,11 @@ export const authAppByTmbId = async ({
...
@@ -119,6 +112,11 @@ export const authAppByTmbId = async ({
resourceType
:
PerResourceTypeEnum
.
app
resourceType
:
PerResourceTypeEnum
.
app
});
});
const
Per
=
new
AppPermission
({
role
,
isOwner
});
const
Per
=
new
AppPermission
({
role
,
isOwner
});
if
(
app
.
favourite
||
app
.
quick
)
{
Per
.
addRole
(
ReadRoleVal
);
}
return
{
return
{
Per
Per
};
};
...
...
projects/app/src/pageComponents/chat/ChatSetting/index.tsx
View file @
3fb1ff26
...
@@ -15,6 +15,7 @@ import { useTranslation } from 'react-i18next';
...
@@ -15,6 +15,7 @@ import { useTranslation } from 'react-i18next';
import
{
useMount
}
from
'ahooks'
;
import
{
useMount
}
from
'ahooks'
;
import
{
useSystemStore
}
from
'@/web/common/system/useSystemStore'
;
import
{
useSystemStore
}
from
'@/web/common/system/useSystemStore'
;
import
{
useRouter
}
from
'next/router'
;
import
{
useRouter
}
from
'next/router'
;
import
{
useUserStore
}
from
'@/web/support/user/useUserStore'
;
const
HomepageSetting
=
dynamic
(()
=>
import
(
'@/pageComponents/chat/ChatSetting/HomepageSetting'
));
const
HomepageSetting
=
dynamic
(()
=>
import
(
'@/pageComponents/chat/ChatSetting/HomepageSetting'
));
const
LogDetails
=
dynamic
(()
=>
import
(
'@/pageComponents/chat/ChatSetting/LogDetails'
));
const
LogDetails
=
dynamic
(()
=>
import
(
'@/pageComponents/chat/ChatSetting/LogDetails'
));
...
@@ -28,6 +29,7 @@ const ChatSetting = () => {
...
@@ -28,6 +29,7 @@ const ChatSetting = () => {
const
{
isPc
}
=
useSystem
();
const
{
isPc
}
=
useSystem
();
const
{
t
}
=
useTranslation
();
const
{
t
}
=
useTranslation
();
const
{
feConfigs
}
=
useSystemStore
();
const
{
feConfigs
}
=
useSystemStore
();
const
{
userInfo
}
=
useUserStore
();
const
{
tab
:
tabQuery
}
=
router
.
query
as
{
tab
:
ChatSettingTabOptionEnum
};
const
{
tab
:
tabQuery
}
=
router
.
query
as
{
tab
:
ChatSettingTabOptionEnum
};
const
[
isOpenDiagram
,
setIsOpenDiagram
]
=
useState
(
false
);
const
[
isOpenDiagram
,
setIsOpenDiagram
]
=
useState
(
false
);
...
@@ -60,7 +62,7 @@ const ChatSetting = () => {
...
@@ -60,7 +62,7 @@ const ChatSetting = () => {
);
);
useMount
(()
=>
{
useMount
(()
=>
{
if
(
!
feConfigs
?.
isPlus
)
{
if
(
!
feConfigs
?.
isPlus
||
!
userInfo
?.
team
.
permission
.
hasManagePer
)
{
handlePaneChange
(
ChatSidebarPaneEnum
.
TEAM_APPS
);
handlePaneChange
(
ChatSidebarPaneEnum
.
TEAM_APPS
);
}
}
});
});
...
...
projects/app/src/pageComponents/chat/UserAvatarPopover.tsx
View file @
3fb1ff26
...
@@ -64,7 +64,7 @@ const UserAvatarPopover = ({
...
@@ -64,7 +64,7 @@ const UserAvatarPopover = ({
>
>
<
Avatar
src=
{
userInfo
?.
avatar
}
bg=
"myGray.200"
borderRadius=
"50%"
w=
{
5
}
h=
{
5
}
/>
<
Avatar
src=
{
userInfo
?.
avatar
}
bg=
"myGray.200"
borderRadius=
"50%"
w=
{
5
}
h=
{
5
}
/>
<
Box
flex=
"1 1 0"
minW=
"0"
whiteSpace=
"pre-wrap"
>
<
Box
flex=
"1 1 0"
minW=
"0"
whiteSpace=
"pre-wrap"
>
{
userInfo
?.
usern
ame
??
'-'
}
{
userInfo
?.
team
.
memberN
ame
??
'-'
}
</
Box
>
</
Box
>
</
Flex
>
</
Flex
>
)
}
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment