/// <summary> /// Check if the user is authehticate to edit HTML. /// </summary> /// <param name="usermoduleid">userModuleID</param> /// <param name="username">username</param> /// <param name="portalid">portalID</param> /// <returns>Returns true if the user is authenticate to edit HTML content</returns> public static bool IsAuthenticatedToEdit(string usermoduleid, string username, int portalid) { try { HTMLDataProvider objProvider = new HTMLDataProvider(); bool IsAunticateToEdit = HTMLDataProvider.IsAuthenticatedToEdit(usermoduleid, username, portalid); return(IsAunticateToEdit); } catch (Exception e) { throw e; } }
/// <summary> /// Checks if the user is authentcate to edit HTML. /// </summary> /// <param name="UserModuleID">userModuleID</param> /// <param name="Username">userName</param> /// <param name="PortalID">portalID</param> /// <returns>returns true if the user has permission to edit</returns> public bool IsAuthenticatedToEdit(int UserModuleID, string Username, int PortalID) { try { HTMLDataProvider objProvider = new HTMLDataProvider(); bool IsAuthenticated = objProvider.IsAuthenticatedToEdit(UserModuleID, Username, PortalID); return(IsAuthenticated); } catch (Exception e) { throw e; } }
public bool IsAuthenticatedToEdit(int UserModuleID, string Username, int PortalID) { try { HTMLDataProvider objProvider = new HTMLDataProvider(); bool IsAuthenticated = objProvider.IsAuthenticatedToEdit(UserModuleID, Username, PortalID); return IsAuthenticated; } catch (Exception e) { throw e; } }