argh..copy and paste from VWD always mess up the html... I try again :)
I have tried both, but none of them work. If I fetch the current user using your method, ui is nothing.
Dim ui As UserInfo = UserController.GetUserByName(0, UserController.GetCurrentUserInfo.Username())
ui.Roles = Join(rr, New Char() {";"c}) does not work, resulting in the following error:
BC30519: Overload resolution failed because no accessible 'Join' can be called without a narrowing conversion.
But I'll look into this later, I have just started reading the DNN documentation. I can use the old method and use InStr to find out if the user is in the correct group. It may be dirty, but it work for me :)
Thank you so far :)
With kind regards,
Steinar