select only my labels from all mindmap labels

This commit is contained in:
Claudio Barril 2014-03-08 16:26:01 -03:00
parent 29894a276e
commit 29037e60d8

View File

@ -99,8 +99,11 @@ public class RestMindmapInfo {
}
public Set<RestLabel> getLabels() {
final Set<RestLabel> result = new LinkedHashSet<>();
final User me = Utils.getUser();
for (Label label : mindmap.getLabels()) {
result.add(new RestLabel(label));
if (label.getCreator().equals(me)) {
result.add(new RestLabel(label));
}
}
return result;
}