Fix error on mindmap publish & details

This commit is contained in:
Paulo Gustavo Veiga
2020-11-22 12:53:35 -08:00
parent 64411c6232
commit 3a006f1fbc
5 changed files with 15 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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<>();

View File

@@ -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();
}