Just Updated from 9 to 10.0.1 to . 10.01.01 One of my theme files (AddFiles.ascx) is throwing this error.
Google foo told me to change this
Old line:
if("<%=UserController.GetCurrentUserInfo().IsInRole("Administrators") %>"=="True")
Changed to:
if("<%=DotNetNuke.Entities.Users.UserController.Instance.GetCurrentUserInfo().IsInRole("Administrators") %>"=="True")
Still showing error. Any ideas? Thanks
is that if a Javascript if?
I just tested <%=DotNetNuke.Entities.Users.UserController.Instance.GetCurrentUserInfo().IsInRole("Administrators") %> in a them in the latest DNN 10 and it works as expected
Thanks. While editing I made a copy of the broken line and I thought it was commented out- the site was still parsing it and throwing the error. When I removed the 'comment' it worked.
Right, I ran into that issue too :-)
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.