Пример #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;
 }