20230426新增功能:分公司且本部角色账号能在本部和项目登录、切换。
This commit is contained in:
@@ -596,14 +596,14 @@ namespace FineUIPro.Web
|
||||
protected void btnHome_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.CurrUser.LastProjectId)
|
||||
&& ((this.CurrUser.UnitId == Const.UnitId_SEDIN && (this.CurrUser.IsOffice == true || this.CurrUser.RoleIds != null)) || this.CurrUser.PersonId == Const.sysglyId || this.CurrUser.PersonId == Const.hfnbdId))
|
||||
&& ((CommonService.IsSedinOrSub(this.CurrUser.UnitId) && (this.CurrUser.IsOffice == true || this.CurrUser.RoleIds != null)) || this.CurrUser.PersonId == Const.sysglyId || this.CurrUser.PersonId == Const.hfnbdId))
|
||||
{
|
||||
Person_PersonsService.UpdateLastUserInfo(this.CurrUser.PersonId, null, true, this.CurrUser.LoginProjectId);
|
||||
this.CurrUser.LastProjectId = this.CurrUser.LoginProjectId;
|
||||
PageContext.Redirect("~/index.aspx", "_top");
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
this.MenuSwitchMethod(string.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user