chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace 報到系統.Forms
|
||||
{
|
||||
public partial class RoleManage : PageBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
// 檢查是否為系統管理員
|
||||
if (Session[PublicVariable.IsSystemManager] == null ||
|
||||
!(bool)Session[PublicVariable.IsSystemManager])
|
||||
{
|
||||
Response.Redirect("~/Forms/Home.aspx");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user