fleet-contractor/Site/SystemSettings/SettingColors.aspx.cs
2023-04-28 12:22:26 +08:00

42 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IronIntel.Contractor.Site.SystemSettings;
public partial class SystemSettings_SettingColors : SystemSettingsBasePage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!CheckLoginSession())
{
RedirectToLoginPage();
}
else
{
string methodName = Request.Form["MethodName"];
if (!string.IsNullOrEmpty(methodName))
{
ProcessRequest(methodName);
}
else if (!IsPostBack)
{
this.Title = PageTitle;
}
}
}
protected override bool AllowCurrentLoginSessionEnter()
{
var f = base.AllowCurrentLoginSessionEnter();
if (!f)
{
return false;
}
var user = GetCurrentUser();
return user != null && user.UserType >= IronIntel.Contractor.Users.UserTypes.Admin;
}
}