can I determine if the user is admin using JavaScript
Last Post 10/29/2009 9:57 AM by Joseph Craig. 1 Replies.
Author Messages
Haider
Nuke Newbie
Nuke Newbie
Posts:1


--
10/29/2009 8:35 AM  
Hi there, I've used the following VB to determine if the current user is in an admin role: <% If Not PortalSecurity.IsInRoles(PortalController.GetCurrentPortalSettings.AdministratorRoleName) Then %> however i was wondering I could do the same with JavaScript on the client? Thanks
Joseph Craig
DNN MVP
Posts:11667


--
10/29/2009 9:57 AM  
You will need to write out the role somewhere from the server into the page so that you can use javascript to grab it. Is that enough of a hint?

Joe Craig, Patapsco Research Group
Complete DNN Support


---