parent
15d7f17fb5
commit
a0c021202e
@ -45,6 +45,7 @@ export const scopesSchema: ISchema = {
|
|||||||
label: 'name',
|
label: 'name',
|
||||||
value: 'id',
|
value: 'id',
|
||||||
},
|
},
|
||||||
|
multiple: false,
|
||||||
association: {
|
association: {
|
||||||
target: 'rolesResourcesScopes',
|
target: 'rolesResourcesScopes',
|
||||||
},
|
},
|
||||||
|
@ -322,6 +322,11 @@ export class PluginACL extends Plugin {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (actionName === 'update' && resourceName === 'roles.resources') {
|
||||||
|
ctx.action.mergeParams({
|
||||||
|
updateAssociationValues: ['actions'],
|
||||||
|
});
|
||||||
|
}
|
||||||
await next();
|
await next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user