Show collaboration role on details.

This commit is contained in:
Paulo Gustavo Veiga
2012-06-17 22:48:33 -03:00
parent 521111fac2
commit 29091dec88
3 changed files with 22 additions and 10 deletions

View File

@@ -141,6 +141,12 @@ public class MindMapBean {
return mindmap.hasPermissions(collaborator, CollaborationRole.EDITOR);
}
public String getRole() {
final Collaboration collaboration = this.mindmap.findCollaboration(collaborator);
return collaboration.getRole().getLabel();
}
public MindMap getDelegated() {
return mindmap;
}