|
|
@ -100,6 +100,7 @@ import com.fr.stable.core.UUID; |
|
|
|
import com.fr.widgettheme.designer.WidgetThemeDisplayAction; |
|
|
|
import com.fr.widgettheme.designer.WidgetThemeDisplayAction; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import com.fr.workspace.server.lock.TplOperator; |
|
|
|
import com.fr.workspace.server.lock.TplOperator; |
|
|
|
|
|
|
|
import com.fr.workspace.server.repository.WorkplaceConstants; |
|
|
|
import com.fr.workspace.server.repository.template.TemplateRepository; |
|
|
|
import com.fr.workspace.server.repository.template.TemplateRepository; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
@ -1748,10 +1749,9 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>> |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private boolean checkJTemplateAuthority() { |
|
|
|
private boolean checkJTemplateAuthority() { |
|
|
|
// todo:微服务待调整
|
|
|
|
if (!WorkplaceConstants.isConnectionEditAuth()) { |
|
|
|
//if (!FSConfig.getInstance().getAuthorizeAttr().isDataConnectionAuthority()) {
|
|
|
|
return true; |
|
|
|
// return true;
|
|
|
|
} |
|
|
|
//}
|
|
|
|
|
|
|
|
JTemplateAuthorityChecker jTemplateAuthorityChecker = new JTemplateAuthorityChecker(this); |
|
|
|
JTemplateAuthorityChecker jTemplateAuthorityChecker = new JTemplateAuthorityChecker(this); |
|
|
|
if (jTemplateAuthorityChecker.isAuthority()) { |
|
|
|
if (jTemplateAuthorityChecker.isAuthority()) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|