获取header权限方法更换使用用户权限缓存获取app应用权限

This commit is contained in:
anhc 2022-07-05 16:54:24 +08:00
parent a57502c9f0
commit af0d3a1a25

View File

@ -25,6 +25,7 @@ import java.util.*;
import com.actionsoft.apps.coe.pal.constant.CoEConstant;
import com.actionsoft.apps.coe.pal.cooperation.CoeCooperationAPIManager;
import com.actionsoft.apps.coe.pal.cooperation.cache.CooperationCache;
import com.actionsoft.apps.coe.pal.cooperation.model.CoeCooperationTeamModel;
import com.actionsoft.apps.coe.pal.log.CoEOpLogAPI;
import com.actionsoft.apps.coe.pal.log.CoEOpLogConst;
@ -1181,7 +1182,7 @@ public class NavigationWeb extends ActionWeb {
if (UtilString.isNotEmpty(teamId)) {
for (int i = 0; i < teamOptions.size(); i++) {
String tempTeamId = teamOptions.getJSONObject(i).getString("teamId");
Set<String> appPerm = CoeCooperationAPIManager.getInstance().queryAppPerm(tempTeamId, _uc.getUID());
Set<String> appPerm = CooperationCache.getUserAPPPermission(tempTeamId, _uc.getUID());
JSONArray tempList = new JSONArray();
for (int j = 0; j < appList.size(); j++) {
JSONObject app = appList.getJSONObject(j);