Last post Jan 23, 2006 10:53 AM by sailorcyberspace
Jan 18, 2006 02:27 PM|sailorcyberspace|LINK
I couldn't find anything in search so I figured I'd ask you all real quick. I need the code to see if someone is in a particular role in DNN 2.1.2. Is it by Role name or Role Id? Here is what I want to do:
If (person is an administrator) or (person is a blah, blah, blah) then
I know that it's got to be something easy, like 1 or 2 lines...does anyone know it (preferably in VB)? Thanks a bunch,
Jan 18, 2006 07:38 PM|cathal|LINK
i'm not near a 2.12 codebase at present, but this
post is correct as far as i remember.
Jan 19, 2006 05:17 PM|ech01|LINK
This is a function that I have used quite often.
role = roleCtrl.GetRole(roleid)
SubjectRoleName = "LPS"
SubjectRoleName = "Sr. LPS"
Jan 23, 2006 10:53 AM|sailorcyberspace|LINK
That worked like a charm! Thanks so much! :)