Browse Source

REPORT-131068 远程设计权限校验不生效

fbp/release
Destiny.Lin 3 months ago
parent
commit
ff0bc767f6
  1. 4
      designer-base/src/main/java/com/fr/design/env/HttpWorkspaceConnector.java

4
designer-base/src/main/java/com/fr/design/env/HttpWorkspaceConnector.java vendored

@ -4,10 +4,10 @@ import com.fanruan.workplace.http.HttpConstants;
import com.fanruan.workplace.http.HttpServiceMap;
import com.fanruan.workplace.http.RepositoryManager;
import com.fanruan.workplace.http.info.Stub;
import com.fr.exception.RemoteDesignPermissionDeniedException;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.StringUtils;
import com.fr.workspace.engine.exception.RemoteDesignConnectionException;
import com.fr.workspace.engine.exception.RemoteDesignNoAuthException;
import com.fr.workspace.server.repository.authority.RemoteAuthorityRepository;
import com.fr.workspace.server.repository.compatible.register.CompatibleRegister;
import com.fr.workspace.server.repository.connect.FineWorkspaceHttpClient;
@ -89,7 +89,7 @@ public class HttpWorkspaceConnector implements WorkspaceConnector {
// 检查远程权限
if (!checkRemoteAuthority(connection)) {
// 无权限则抛出无权限的错
throw new RemoteDesignPermissionDeniedException();
throw new RemoteDesignNoAuthException();
}
}

Loading…
Cancel
Save