Closed HatemJerbi closed 8 years ago
You should use setUserRoles
.
typo: i mean Roles.setUserRoles can't handle this situation
@HatemJerbi: Why you closed this ticket now? Was the issue resolved for you?
sorry mitar it was my fault, there is no problem with your setUserRoles method.
Best regards
I am glad it has been resolved.
Take the example when we have a form where admin assign roles to specific user by group of check box. the method Roles.addUsersToRoles can't handle this situation because it add new assigned roles and didn't delete unassigned roles. thxs