Task #441 (closed)
Opened 18 years ago
Closed 12 years ago
Consider canWrite method on IAdmin.
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | major | Milestone: | OMERO-4.4 |
Component: | API | Version: | 3.0-Beta1 |
Keywords: | security | Cc: | jrswedlow, cxallan, jburel |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
Rather than requiring this logic to be written by the user each time:
if (p.isGranted(Role.WORLD, Right.WRITE) || (uid.equals(e.getId()) && p .isGranted(Role.USER, Right.WRITE)) || (gid.equals(g.getId()) && p.isGranted(Role.GROUP, Right.WRITE))) { canWrite = true; }
just provide:
IAdmin.canWrite(IObject)
IAdmin.canRead() is most likely not necessary since a user shouldn't have the object in the first place!
Change History (1)
comment:1 Changed 12 years ago by jmoore
- Milestone changed from GatherReqs to OMERO-Beta4.4
- Resolution set to invalid
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
Added long ago: