Exemplo n.º 1
0
        /// <summary>
        /// Get visible/hidden string based on logged in user type.
        /// For viewer usertype only it should be hidden
        /// </summary>
        /// <param name="session">The session object</param>
        /// <returns>visible or hidden text based on logged in user type</returns>
        public static string AllowUserToEdit(this HttpSessionStateBase session)
        {
            string userType        = session.GetUserType();
            string allowUserToEdit = "visible";

            if (userType.Equals(Constants.VIEWER_USER))
            {
                allowUserToEdit = "hidden";
            }
            return(allowUserToEdit);
        }