|
|
@ -1751,6 +1751,9 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>> |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private boolean checkJTemplateAuthority() { |
|
|
|
private boolean checkJTemplateAuthority() { |
|
|
|
|
|
|
|
if (WorkContext.getCurrent().isRoot()) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
ConnectionAuthorityConfigBean bean = ConnectionRepository.getInstance().getConnectionAuthorityConfig(); |
|
|
|
ConnectionAuthorityConfigBean bean = ConnectionRepository.getInstance().getConnectionAuthorityConfig(); |
|
|
|
if (!(bean !=null && bean.isConnectionEditAuth())) { |
|
|
|
if (!(bean !=null && bean.isConnectionEditAuth())) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|