示例#1
0
 public ContactCoreEntity GetByProfileID(string strProfileID, string strLoggedInUserID)
 {
     Profile.ProfileSecurity objProfileSecurity = new Profile.ProfileSecurity(ref _objLoggedInUser);
     using (objProfileSecurity as IDisposable)
     {
         if (!string.IsNullOrEmpty(strLoggedInUserID))
         {
             //MugurthamUserToken - If null - hacker is trying to hack the system so redirect to unauthorized page
             if (!objProfileSecurity.validateProfileViewAccess(strProfileID, strLoggedInUserID))
             {
                 strProfileID = strLoggedInUserID;
             }
         }
     }
     objProfileSecurity = null;
     return(GetByProfileID(strProfileID));
 }
示例#2
0
 public ContactCoreEntity GetByProfileID(string strProfileID, string strLoggedInUserID)
 {
     Profile.ProfileSecurity objProfileSecurity = new Profile.ProfileSecurity();
     using (objProfileSecurity as IDisposable)
     {
         if (!string.IsNullOrEmpty(strLoggedInUserID))
         {
             //MugurthamUserToken - If null - hacker is trying to hack the system so redirect to unauthorized page
             if (!objProfileSecurity.validateProfileViewAccess(strProfileID, strLoggedInUserID))
             {
                 strProfileID = strLoggedInUserID;
             }
         }
     }
     objProfileSecurity = null;
     return GetByProfileID(strProfileID);
 }
示例#3
0
 public int Edit(ref Mugurtham.Core.BasicInfo.BasicInfoCoreEntity objBasicInfoCoreEntity, string LoggedInUserID)
 {
     Profile.ProfileSecurity objProfileSecurity = new Profile.ProfileSecurity(ref _objLoggedInUser);
     using (objProfileSecurity as IDisposable)
     {
         if (!string.IsNullOrEmpty(LoggedInUserID))
         {
             //MugurthamUserToken - If null - hacker is trying to hack the system so redirect to unauthorized page
             if (!objProfileSecurity.validateProfileViewAccess(objBasicInfoCoreEntity.ProfileID, LoggedInUserID))
             {
                 objBasicInfoCoreEntity.ProfileID = LoggedInUserID;
             }
         }
     }
     objProfileSecurity = null;
     Edit(ref objBasicInfoCoreEntity);
     return(0);
 }
示例#4
0
 public int Edit(ref Mugurtham.Core.BasicInfo.BasicInfoCoreEntity objBasicInfoCoreEntity, string LoggedInUserID)
 {
     Profile.ProfileSecurity objProfileSecurity = new Profile.ProfileSecurity();
     using (objProfileSecurity as IDisposable)
     {
         if (!string.IsNullOrEmpty(LoggedInUserID))
         {
             //MugurthamUserToken - If null - hacker is trying to hack the system so redirect to unauthorized page
             if (!objProfileSecurity.validateProfileViewAccess(objBasicInfoCoreEntity.ProfileID, LoggedInUserID))
             {
                 objBasicInfoCoreEntity.ProfileID = LoggedInUserID;
             }
         }
     }
     objProfileSecurity = null;
     Edit(ref objBasicInfoCoreEntity);
     return 0;
 }