配置

RG3.Web.Host.PaaS\Config\AppConfig\basis\app_config.json

代码

AuthProvider$Current.cs

  #region 当前用户条件过滤
            //{s-if:_filterOpenUser}  and column=@_userId {e-if:_filterOpenUser}
            bool openU = true;
            if (token.Developer == 1)
            {
                openU = false;
            }
            else if (dictionaryPop.ContainsKey("_defaultOpenUserRoleId") && token.RoleId?.Count > 0)
            {
                var vals = new List<string>(dictionaryPop["_defaultOpenUserRoleId"].ToString().Split(','));
                //没有交集,开启当前用户过滤
                openU = vals.Intersect(token.RoleId).Count() == 0;
            }
            if (openU)
            {
                dictionaryPop[SystemParamConst.FILTER_OPEN_USER] = 1;
            }
            #endregion 当前用户条件过滤
文档更新时间: 2022-10-26 09:15   作者:admin