Hi everyone. I have a problem with configuring some files after upgrade to DNN 9.10.2. First of all, we had some custom skins with code blocks <% .. %> in it and I solved loading skins problem with adding <asp:PlaceHolder runat="server"> <% %> </asp>.
BUT, new problem occured when I added our custom code we used in older versions written in Default.aspx.
string roles = new DotNetNuke.Security.Roles.RoleController().GetRolesByUser(DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo().UserID, new DotNetNuke.Entities.Users.OnlineUserInfo().PortalID);
So, as GetRolesByUser is deprecated in DotNetNuke 6.2 I didn't find exactly with which one method to replace it? Found this: https://dnncommunity.org/forums/aft/1119 but I'm not sure if this would work? I tried with: UserController.GetUserById(new DotNetNuke.Entities.Users.OnlineUserInfo().PortalID, DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo().UserID).Roles;
but then I get
When I delete any code in <asp:PlaceHolder runat="server"><% ..code.. %></asp:PlaceHolder> my page loads fine. Like it won't work with code between block <asp:PlaceHolder runat="server"><% .... %></asp:PlaceHolder>
Also, I was wondering, regarding Telerik component vulnerability.. As we use several third party modules with Telerik and, for now, removing Telerik is not an option (but it definetly will be in future), I tested uninstalling Telerik from DNN and removing any references from web.config as described in documentation but copying back Telerik dll's to bin folder. So, just copying back dll's, with no references anywhere in config. In that case, our modules that user Telerik work, so I was wondering is there a way that this solution might be some kind of workaround to keep using Telerik without some security issues??