Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

User Story #1388 (new)

Opened 15 years ago

Add support for "effective" UID.

Reported by: jamoore Owned by: jamoore
Priority: critical Milestone: Unscheduled
Component: General Keywords: n.a.
Cc: cxallan, atarkowska Story Points: n.a.
Sprint: n.a. Importance: n.a.
Total Remaining Time: n.a. Estimated Remaining Time: n.a.


Both "sudo" and OmeroShares could use support for effective user id.


IShare is available. We had some problems with retrieving data,
especially images. I would like to ask you about being careful
when you are getting current user id by

private Long getCurrentUserId() {
	Long shareId = getSecuritySystem().getEventContext().getCurrentShareId();
	if (shareId != null) {
		Session s = iQuery.get(Session.class, shareId);
		return s.getOwner().getId();
	return getSecuritySystem().getEventContext().getCurrentUserId();

ThumbnailBean and PixelsImpl already have that method.

Change History (0)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.64538 sec.)

We're Hiring!