Code to Review

Jul 9, 2013 at 2:46 PM
Hi,

I found the concept very sympatical to replace Infopath. But when I compiled the source I had a warning and I found this:
SPSecurity.RunWithElevatedPrivileges(delegate()
                   {
                       using (SPSite site = new SPSite(SPContext.Current.Site.Url))
                       {
                           site.AllowUnsafeUpdates = true;
                           using (SPWeb web = site.OpenWeb(SPContext.Current.Web.ID))
You should review your code and I hope you do not teach this type of use of "SPSecurity.RunWithElevatedPrivileges".

I even do not understand why it is necessary to elevate privileges.

I am very chocked to see that.

I hope my comment will help you to improve this nice concept.

Good luck.