适配OakUserUnpermittedException的改动
This commit is contained in:
parent
6105f03d3a
commit
affee4645c
|
|
@ -18,7 +18,7 @@ export async function mergeUser<ED extends EntityDict & BaseEntityDict, Cxt exte
|
||||||
) {
|
) {
|
||||||
const { from, to, mergeMobile, mergeEmail, mergeWechatUser } = params;
|
const { from, to, mergeMobile, mergeEmail, mergeWechatUser } = params;
|
||||||
if (!innerLogic && !context.isRoot()) {
|
if (!innerLogic && !context.isRoot()) {
|
||||||
throw new OakUserUnpermittedException('user', { id: 'merge', action: 'merge', data: { userId: to }}, '不允许执行mergeUser操作');
|
throw new OakUserUnpermittedException('user', { id: 'merge', action: 'merge', data: {}, filter: { id: from }}, '不允许执行mergeUser操作');
|
||||||
}
|
}
|
||||||
assert(from);
|
assert(from);
|
||||||
assert(to);
|
assert(to);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue