diff --git a/designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java b/designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java index 6871987599..ebceb6b141 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java @@ -100,6 +100,7 @@ import com.fr.stable.core.UUID; import com.fr.widgettheme.designer.WidgetThemeDisplayAction; import com.fr.workspace.WorkContext; import com.fr.workspace.server.lock.TplOperator; +import com.fr.workspace.server.repository.WorkplaceConstants; import com.fr.workspace.server.repository.template.TemplateRepository; import javax.swing.BorderFactory; @@ -1748,10 +1749,9 @@ public abstract class JTemplate> } private boolean checkJTemplateAuthority() { - // todo:微服务待调整 - //if (!FSConfig.getInstance().getAuthorizeAttr().isDataConnectionAuthority()) { - // return true; - //} + if (!WorkplaceConstants.isConnectionEditAuth()) { + return true; + } JTemplateAuthorityChecker jTemplateAuthorityChecker = new JTemplateAuthorityChecker(this); if (jTemplateAuthorityChecker.isAuthority()) { return true;