mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
select only my labels from all mindmap labels
This commit is contained in:
parent
29894a276e
commit
29037e60d8
@ -99,9 +99,12 @@ public class RestMindmapInfo {
|
||||
}
|
||||
public Set<RestLabel> getLabels() {
|
||||
final Set<RestLabel> result = new LinkedHashSet<>();
|
||||
final User me = Utils.getUser();
|
||||
for (Label label : mindmap.getLabels()) {
|
||||
if (label.getCreator().equals(me)) {
|
||||
result.add(new RestLabel(label));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user