Change symblink to moootols

Add editor issue.
This commit is contained in:
Paulo Gustavo Veiga
2012-04-02 14:11:28 -03:00
parent 9f0557b851
commit f52f01a6b1
24 changed files with 411 additions and 599 deletions

View File

@@ -47,16 +47,15 @@ public class MindmapServiceImpl
}
public boolean isAllowedToView(User user, MindMap map, UserRole grantedRole) {
boolean isAllowed = false;
boolean result = false;
if (map != null) {
if (map.isPublic()) {
isAllowed = true;
result = true;
} else if (user != null) {
isAllowed = isAllowedToCollaborate(user, map, grantedRole);
result = isAllowedToCollaborate(user, map, grantedRole);
}
}
return isAllowed;
return result;
}
public boolean isAllowedToCollaborate(@NotNull User user, @Nullable MindMap map, UserRole grantedRole) {