mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 15:41:05 +00:00
refactor: permission role & app read chat log permission (#5416)
* refactor: permission role * refactor: permission type * fix: permission manage * fix: group owner cannot be deleted * chore: common per map * chore: openapi * chore: rename * fix: type error * chore: app chat log permission * chore: add initv4112
This commit is contained in:
@@ -6,7 +6,6 @@ import { MongoOpenApi } from '../../openapi/schema';
|
||||
import { OpenApiErrEnum } from '@fastgpt/global/common/error/code/openapi';
|
||||
import { OwnerPermissionVal } from '@fastgpt/global/support/permission/constant';
|
||||
import { authAppByTmbId } from '../app/auth';
|
||||
import { Permission } from '@fastgpt/global/support/permission/controller';
|
||||
|
||||
export async function authOpenApiKeyCrud({
|
||||
id,
|
||||
@@ -49,9 +48,7 @@ export async function authOpenApiKeyCrud({
|
||||
|
||||
return {
|
||||
openapi,
|
||||
permission: new Permission({
|
||||
per
|
||||
})
|
||||
permission: tmbPer
|
||||
};
|
||||
})();
|
||||
|
||||
|
Reference in New Issue
Block a user