diff --git a/src/configuration/relation.ts b/src/configuration/relation.ts index b40d52a6..c3c93a1d 100644 --- a/src/configuration/relation.ts +++ b/src/configuration/relation.ts @@ -8,6 +8,8 @@ export const authDeduceRelationMap: AuthDeduceRelationMap = { export const selectFreeEntities = [ 'offlineAccount', 'wpProduct', + 'withdrawChannel', + 'wpAccount', ]; export const updateFreeDict: UpdateFreeDict = { diff --git a/src/data/actionAuth.ts b/src/data/actionAuth.ts index 3121ba73..a41c1bb5 100644 --- a/src/data/actionAuth.ts +++ b/src/data/actionAuth.ts @@ -64,6 +64,18 @@ const actionAuths: ActionAuth[] = [ pathId: 'user-acc-oper', deActions: ['select', 'create'], }, + // withdrawAccount + { + id: 'user-withdrawAccount', + pathId: 'user-withdrawAccount', + deActions: ['select', 'create', 'remove', 'disable', 'update'], + }, + // withdrawTransfer + { + id: 'user-acc-wdtransfer', + pathId: 'user-acc-wdtransfer', + deActions: ['select', 'create'], + } ]; export default actionAuths; diff --git a/src/data/path.ts b/src/data/path.ts index 014e6f58..4b33e9ff 100644 --- a/src/data/path.ts +++ b/src/data/path.ts @@ -98,6 +98,20 @@ const paths: Path[] = [ destEntity: 'deposit', value: 'account.user', recursive: false, + }, + { + id: 'user-withdrawAccount', + sourceEntity: 'user', + destEntity: 'withdrawAccount', + value: 'user', + recursive: false, + }, + { + id: 'user-acc-wdtransfer', + sourceEntity: 'user', + destEntity: 'withdrawTransfer', + value: 'withdraw.account.user', + recursive: false, } ];