一些权限设定
This commit is contained in:
parent
00275166db
commit
4c414219ac
|
|
@ -8,6 +8,8 @@ export const authDeduceRelationMap: AuthDeduceRelationMap<EntityDict> = {
|
||||||
export const selectFreeEntities = [
|
export const selectFreeEntities = [
|
||||||
'offlineAccount',
|
'offlineAccount',
|
||||||
'wpProduct',
|
'wpProduct',
|
||||||
|
'withdrawChannel',
|
||||||
|
'wpAccount',
|
||||||
];
|
];
|
||||||
|
|
||||||
export const updateFreeDict: UpdateFreeDict<EntityDict> = {
|
export const updateFreeDict: UpdateFreeDict<EntityDict> = {
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,18 @@ const actionAuths: ActionAuth[] = [
|
||||||
pathId: 'user-acc-oper',
|
pathId: 'user-acc-oper',
|
||||||
deActions: ['select', 'create'],
|
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;
|
export default actionAuths;
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,20 @@ const paths: Path[] = [
|
||||||
destEntity: 'deposit',
|
destEntity: 'deposit',
|
||||||
value: 'account.user',
|
value: 'account.user',
|
||||||
recursive: false,
|
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,
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue