Esempio n. 1
0
        public static int GetCurrentUserRol()
        {
            try
            {
                SQLDBConnect sqlCon  = new SQLDBConnect();
                DataRow      userRow = sqlCon.GetUser(GetCurrentUserName());

                if (userRow == null)
                {
                    return(-1);
                }

                int rolID = Convert.ToInt32(userRow["user_rol_id"]);
                return(rolID);
            }catch (Exception) {
                return(-1);
            }
        }