Mercurial > hg > AnnotationManagerN4J
comparison src/main/java/de/mpiwg/itgroup/annotations/Actor.java @ 88:b406507a953d
upped version to 0.5.
can use display name and groups from auth token.
author | casties |
---|---|
date | Tue, 03 Feb 2015 19:01:27 +0100 |
parents | 2b1e6df5e21a |
children | f83eb8b335b1 |
comparison
equal
deleted
inserted
replaced
87:2beafb8e19e4 | 88:b406507a953d |
---|---|
55 if (person == null) return false; | 55 if (person == null) return false; |
56 if (person.equals(this)) return true; | 56 if (person.equals(this)) return true; |
57 if (person.getIdString().equals(this.getIdString())) return true; | 57 if (person.getIdString().equals(this.getIdString())) return true; |
58 if (isGroup() && store != null) { | 58 if (isGroup() && store != null) { |
59 // check if person in group | 59 // check if person in group |
60 if (person.groups != null) { | |
61 // check person's groups | |
62 if (person.groups.contains(this.id)) { | |
63 return true; | |
64 } | |
65 } | |
66 // check in store | |
60 return store.isPersonInGroup(person, (Group) this); | 67 return store.isPersonInGroup(person, (Group) this); |
61 } | 68 } |
62 return false; | 69 return false; |
63 } | 70 } |
64 | 71 |