作者 唐旭辉

bug 修复

... ... @@ -92,7 +92,7 @@ func buildSqlForAuditList(usercompanyid int64, companyid int64, userid int64) st
unionsql = sql1 + " UNION " + sql2
return fmt.Sprintf(allsql, unionsql)
}
log.Debug("获取到的权限规则:%v", usrPermission)
log.Debug("获取到的权限规则,check:%+v,option:%+v", usrPermission.CheckMap, usrPermission.CheckOption)
//进行权限判定
if _, ok := usrPermission.CheckMap[serverabc.OpportunityCheckLv4]; ok {
//查看所有
... ...
... ... @@ -123,7 +123,7 @@ var (
func NewOptionOpportunity() PermissionOptionObject {
return &OptionOpportunity{
Check: OpportunityCheckLv4,
Check: OpportunityCheckLv1,
CheckMap: make(map[int]int),
CheckOption: &CheckOpp{
Departments: []CheckDeparment{},
... ...