The result of user.getRoles() is an array and you can’t assign an array to text elements. Only strings can be assigned to text elements.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Use.role not accessible on code | 5 | 473 | August 7, 2019 | |
| Can I use custom roles in code? | 2 | 395 | March 26, 2019 | |
| Issue getting current role and pricing plan of a user. | 3 | 570 | November 30, 2018 | |
| getRoles() Function is not working | 7 | 715 | February 23, 2020 | |
| Get the information of user roles | 7 | 2201 | February 7, 2020 |