mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-24 23:17:56 +01:00
Fix error on mindmap publish & details
This commit is contained in:
parent
64411c6232
commit
3a006f1fbc
@ -160,6 +160,12 @@ public class Mindmap {
|
||||
return isPublic;
|
||||
}
|
||||
|
||||
//@Todo: This is a hack to overcome some problem with JS EL. For some reason, ${mindmap.public} fails as not supported.
|
||||
// More research is needed...
|
||||
public boolean isAccessible() {
|
||||
return isPublic();
|
||||
}
|
||||
|
||||
public void setPublic(boolean isPublic) {
|
||||
this.isPublic = isPublic;
|
||||
}
|
||||
|
@ -11,7 +11,6 @@ public class DefaultPasswordEncoderFactories {
|
||||
|
||||
private static final String ENCODING_ID = "bcrypt";
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
static PasswordEncoder createDelegatingPasswordEncoder() {
|
||||
|
||||
final Map<String, PasswordEncoder> encoders = new HashMap<>();
|
||||
|
@ -47,6 +47,12 @@ public class MindMapBean {
|
||||
return mindmap.isPublic();
|
||||
}
|
||||
|
||||
//@Todo: This is a hack to overcome some problem with JS EL. For some reason, ${mindmap.public} fails as not supported.
|
||||
// More research is needed...
|
||||
public boolean isAccessible() {
|
||||
return getPublic();
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return mindmap.getTitle();
|
||||
}
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
<div class="tab-pane fade" id="publish">
|
||||
<c:choose>
|
||||
<c:when test="${mindmap.public}">
|
||||
<c:when test="${mindmap.accessible}">
|
||||
<ul class="unstyled">
|
||||
<p><spring:message code="ALL_VIEW_PUBLIC"/></p>
|
||||
<li><strong><spring:message code="DIRECT_LINK_EXPLANATION"/></strong>
|
||||
|
@ -11,7 +11,7 @@
|
||||
<form method="post" id="dialogMainForm" action="#" class="well form-inline">
|
||||
<label for="enablePublicView" class="control-label"><spring:message code="ENABLE_PUBLISHING"/>:
|
||||
<input type="checkbox" id="enablePublicView" name="publicView"
|
||||
<c:if test="${mindmap.public}">
|
||||
<c:if test="${mindmap.accessible}">
|
||||
checked="checked"
|
||||
</c:if> />
|
||||
</label>
|
||||
@ -28,6 +28,7 @@
|
||||
</ul>
|
||||
<br/>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="embedTab">
|
||||
<div class="tab-pane fade active in" id="embedTab">
|
||||
<spring:message code="BLOG_INCLUSION"/>
|
||||
<div id="wizardContainer">
|
||||
|
Loading…
Reference in New Issue
Block a user