Browse Source

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

fbp/release
Destiny.Lin 3 months ago
parent
commit
ad1b2ba15c
  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