mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 09:44:47 +00:00
4.6.3-website dataset (#532)
This commit is contained in:
@@ -35,13 +35,11 @@ export async function authUser({
|
||||
user: UserType;
|
||||
}
|
||||
> {
|
||||
const { userId, teamId, tmbId } = await parseHeaderCert(props);
|
||||
const result = await parseHeaderCert(props);
|
||||
|
||||
return {
|
||||
userId,
|
||||
teamId,
|
||||
tmbId,
|
||||
user: await getUserAndAuthBalance({ tmbId, minBalance }),
|
||||
...result,
|
||||
user: await getUserAndAuthBalance({ tmbId: result.tmbId, minBalance }),
|
||||
isOwner: true,
|
||||
canWrite: true
|
||||
};
|
||||
|
Reference in New Issue
Block a user