protected void AcceptUser(object sender, CommandEventArgs e)
        {
            if (Session["mgmt.userid"] == null)
                return;

            int mgrVcl = 0, mgrEcl = 0;
            Util.GetUserClearanceLevels(Util.UserId, out mgrVcl, out mgrEcl);

            int vcl = 0, ecl = 0, tmp = 0;
            if (int.TryParse(VclText.Text, out tmp))
                vcl = tmp;
            if (int.TryParse(EclText.Text, out tmp))
                ecl = tmp;

            // Rights entered may not be higher then the rights of the manager
            if (vcl <= mgrVcl && ecl <= mgrEcl)
            {
                long userIdToManage = (long)Session["mgmt.userid"];
                using (Database db = new MySqlDatabase())
                {
                    db.RegisterUserRights(userIdToManage, vcl, ecl);
                    Session.Remove("mgmt.userid");
                    ManagerNameLabel.Text = string.Empty;
                }
                UpdateManagerTable();
            }
            else
            {
                ResultMessage.Text = Resources.Resource.UserRightsTooHigh;
            }
        }