Task #9106 (new)
Opened 7 years ago
Last modified 3 years ago
Blitz isPrivate isShared is Private
| Reported by: | wmoore | Owned by: | wmoore |
|---|---|---|---|
| Priority: | major | Milestone: | Unscheduled |
| Component: | OmeroPy | Version: | n.a. |
| Keywords: | n.a. | Cc: | atarkowska, cxallan, cneves |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
We need to clean these up, since we now have canEdit() canDelete() canAnnotate() canLink() methods.
E.g. isPrivate() delegates to a number of other methods that load details etc, so we have a lot of work happening under the hood for these calls. See
http://trac.openmicroscopy.org.uk/ome/ticket/8858#comment:1
def isPrivate(self):
if not self.isPublic() and not self.isShared():
g = self.getDetails().getGroup()
g = g and g.details or self._obj.details
return g.permissions.isUserRead()
return False
Change History (4)
comment:1 Changed 7 years ago by jmoore
comment:2 Changed 3 years ago by jamoore
Referencing ticket #9092 has changed sprint.
comment:3 Changed 3 years ago by jamoore
Referencing ticket #9092 has changed sprint.
comment:4 Changed 3 years ago by jamoore
- Milestone changed from 5.x to Unscheduled
Referencing ticket #9092 has changed sprint.