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