This commit is contained in:
2021-11-16 18:23:25 +00:00
parent e61e2cd2d2
commit 939065476a
4 changed files with 216 additions and 5 deletions

View File

@@ -126,7 +126,10 @@ namespace AyaNova.Api.Controllers
if (!AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowCSR)
return false;
break;
//todo: workorder list
case "CustomerWorkOrderDataList":
if (!AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowViewWO)
return false;
break;
default:
return false;
}
@@ -143,7 +146,7 @@ namespace AyaNova.Api.Controllers
if (UserInfo.HeadOfficeId == null || UserInfo.HeadOfficeId == 0) return false;
tableRequest.ClientCriteria = $"{UserInfo.HeadOfficeId},{(int)AyaType.HeadOffice}";
break;
default://other user types can fuck right off!
default://other user type
return false;
}
return true;