|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.design.mainframe; |
|
|
|
|
|
|
|
|
|
import com.fanruan.datasource.web.bean.ConnectionAuthorityConfigBean; |
|
|
|
|
import com.fanruan.product.ProductConstants; |
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
import com.fr.base.Parameter; |
|
|
|
@ -101,6 +102,7 @@ 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.connection.ConnectionRepository; |
|
|
|
|
import com.fr.workspace.server.repository.template.TemplateRepository; |
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
@ -1749,7 +1751,8 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean checkJTemplateAuthority() { |
|
|
|
|
if (!WorkplaceConstants.isConnectionEditAuth()) { |
|
|
|
|
ConnectionAuthorityConfigBean bean = ConnectionRepository.getInstance().getConnectionAuthorityConfig(); |
|
|
|
|
if (!(bean !=null && bean.isConnectionEditAuth())) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
JTemplateAuthorityChecker jTemplateAuthorityChecker = new JTemplateAuthorityChecker(this); |
|
|
|
|