fix : develop_client_permission

master
luoyang14z7 6 years ago
parent 77e0bc1044
commit 93ae3a7275

@ -1,6 +1,6 @@
package au.com.royalpay.payment.manage.permission.manager;
import au.com.royalpay.payment.manage.management.sysconfig.core.PartnerPermissionManager;
import au.com.royalpay.payment.manage.management.sysconfig.core.PermissionPartnerManager;
import au.com.royalpay.payment.manage.management.sysconfig.core.PermissionManager;
import au.com.royalpay.payment.manage.signin.core.SignInStatusManager;
import au.com.royalpay.payment.tools.CommonConsts;
@ -35,7 +35,7 @@ public class ManagerUserInterceptor extends HandlerInterceptorAdapter implements
@Resource
private PermissionManager permissionManager;
@Resource
private PartnerPermissionManager partnerPermissionManager;
private PermissionPartnerManager permissionPartnerManager;
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
@ -104,7 +104,7 @@ public class ManagerUserInterceptor extends HandlerInterceptorAdapter implements
}
}
JSONObject func = partnerPermissionManager.getPartnerFuncById(funcId);
JSONObject func = permissionPartnerManager.getPartnerFuncById(funcId);
if(func!=null && StringUtils.isNotEmpty(func.getString("module_id"))){
JSONArray arr = loginUser.getJSONArray("available_module_ids");
if (arr == null || !arr.contains(func.getString("module_id"))) {

@ -517,7 +517,6 @@ define(['angular', 'uiRouter'], function (angular) {
}
})
if (hasOne != 1) {
$http.put('/sys/permissionPartner/modules/' + $scope.module.module_name + '.end', $scope.module).then(function () {
$scope.$close();
}, function (resp) {
@ -527,20 +526,5 @@ define(['angular', 'uiRouter'], function (angular) {
};
}]);
return app;
});
Loading…
Cancel
Save