Ejemplo n.º 1
0
        private static bool GetRoleVisible(string xmLproperties)
        {
            var genprop = GenXmlFunctions.GetGenControlPropety(xmLproperties, "viewinrole");

            if (genprop == "")
            {
                return(true);
            }
            var objUser = UserController.GetCurrentUserInfo();

            return(objUser.IsInRole(genprop));
        }