修改项目级项目访问权限

This commit is contained in:
2024-09-13 14:57:02 +08:00
parent c628c83364
commit 4063e5b7cf
2 changed files with 39 additions and 17 deletions
+2 -2
View File
@@ -294,7 +294,7 @@ namespace FineUIPro.Web
Response.Expires = 0; //设置过期时间
Response.Cache.SetNoStore(); //在服务器端不缓存该页面
Response.AppendHeader("Pragma", "no-cache"); //在客户端不缓存
ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_1, false);
ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_1, false,"1");
if (!string.IsNullOrEmpty(Request.Params["projectId"]))
{
this.drpProject.SelectedValue = Request.Params["projectId"];
@@ -731,7 +731,7 @@ namespace FineUIPro.Web
protected void btnHome_Click(object sender, EventArgs e)
{
//修改本部用户都能进
//this.CurrUser.UnitId == Const.UnitId_CWCEC &&
//this.CurrUser.UnitId == Const.drpProject &&
if (string.IsNullOrEmpty(this.CurrUser.LastProjectId)
&& ((this.CurrUser.IsOffice == true) || this.CurrUser.UserId == Const.sysglyId || this.CurrUser.UserId == Const.hfnbdId))
{