Browse Source

Pull request #14765: REPORT-133535 【fr-fbp回归】模板内数据连接鉴权失败

Merge in DESIGN/design from ~DESTINY.LIN/design:fbp/release to fbp/release

* commit '86b13f3a9c97cca120ac8de18dac94352fe5550e':
  REPORT-133535 【fr-fbp回归】模板内数据连接鉴权失败
fbp/release
Destiny.Lin-林锦龙 3 months ago
parent
commit
fcacb60805
  1. 8
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

8
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<T extends BaseBook, U extends BaseUndoState<?>>
}
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;

Loading…
Cancel
Save