|
|
|
@ -39,6 +39,7 @@ export const PERMISSION = {
|
|
|
|
|
invite: 'core.invite',
|
|
|
|
|
unlimitedInvite: 'core.unlimitedInvite',
|
|
|
|
|
groupDetail: 'core.groupDetail',
|
|
|
|
|
manageUser: 'core.manageUser',
|
|
|
|
|
managePanel: 'core.managePanel',
|
|
|
|
|
manageInvite: 'core.manageInvite',
|
|
|
|
|
manageRoles: 'core.manageRoles',
|
|
|
|
@ -71,6 +72,13 @@ export const getPermissionList = (): PermissionItemType[] => [
|
|
|
|
|
desc: t('允许成员查看群组详情'),
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: PERMISSION.core.manageUser,
|
|
|
|
|
title: t('允许管理用户'),
|
|
|
|
|
desc: t('允许成员管理用户,如禁言、移除用户等操作'),
|
|
|
|
|
default: false,
|
|
|
|
|
required: [PERMISSION.core.groupDetail],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: PERMISSION.core.managePanel,
|
|
|
|
|
title: t('允许管理频道'),
|
|
|
|
|