Retrieve module role from widget

0
Hi everyone, It is very similar to this question on the forum: https://forum.mendix.com/link/questions/92870 but more extended. Basically, I would like to retrieve the module roles of current user from my widget. Are those values stored anywhere in client side? (I am guessing yes since the visibility of buttons based on module roles should be checked in javascript.) Best regards,
asked
1 answers
0

With

mx.session.getUserRoleNames()

or the list in the dom

<body dir="ltr" class="profile-desktop role-user">

 

??

answered