Timo,
This is the only forum which promptly ansswers questions. Could you field this one and answer or redirect please? Thank you.
This code is in a user control and thus has to find from its parent the boolean values. Here is the code I'm using:
Dim bHost As Boolean = CType(Me.Parent, DotNetNuke.Entities.Modules.PortalModuleBase).UserInfo.IsSuperUser
Dim bAdmin As Boolean = CType(Me.Parent, DotNetNuke.Entities.Modules.PortalModuleBase).UserInfo.IsInRole("")
Sorry that this editor dramatically oversizes fonts and so on. The first line works boolean works. I can't believe there is no .IsAdmin method to test for Admin. I have to test for Admin or Host in order to set some values. Well, I can't find an .IsAdmin method and I'm surprised there isn't one here. As well, I can't find the string value to test for IsInRole. It looks like the .IsAdmin method was overlooked? Can't be.
I have to come up with some way to test for either Admin or Host that isn't esoteric and it seems that the means just isn't there.
Could you kindly assist or put me on the right forum?