ppazos / cabolabs-ehrserver

Open platform to manage and share standardized clinical data, designed by @ppazos at CaboLabs Health Informatics.
https://cabolabs.com
Apache License 2.0
179 stars 110 forks source link

Create user with account manager doesn't allow to select roles ORGMAN or ACCMAN #994

Closed ppazos closed 6 years ago

ppazos commented 6 years ago
  1. logins as accman
  2. go to users
  3. create user
  4. checkboxes are not displayed but the roles table is displayed
  5. when saving I receive "at least one role should be selected"
ppazos commented 6 years ago

The issue might come from this check: roleOrg.value.contains(role) in user/_form.gsp

Where the Role was actually com.cabolabs.security.Role_$$_javassist_25

So I changed it to checking the role.authority