Пример #1
0
        protected void btnMoveTopic_Click(object sender, EventArgs e)
        {
            ForumTopic forumTopic = ForumManager.GetTopicByID(this.TopicID);

            if (forumTopic != null)
            {
                if (!ForumManager.IsUserAllowedToMoveTopic(NopContext.Current.User, forumTopic))
                {
                    string loginURL = CommonHelper.GetLoginPageURL(true);
                    Response.Redirect(loginURL);
                }

                string moveForumTopicURL = SEOHelper.GetMoveForumTopicURL(forumTopic);
                Response.Redirect(moveForumTopicURL);
            }
        }