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"

Task #8435 (closed)

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

isOwner() -> canEdit()

Reported by: wmoore Owned by: wmoore
Priority: major Milestone: OMERO-4.4
Component: Web Version: n.a.
Keywords: n.a. Cc: atarkowska
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2012-05-08 (14)

Description

Where appropriate, use an object's canEdit() method to determine whether it is editable instead of current isOwned().

See #8387 for several examples of where to edit.

Change History (12)

comment:1 Changed 12 years ago by jburel

  • Sprint changed from 2012-04-10 (12) to 2012-04-24 (13)

Moved from sprint 2012-04-10 (12)

comment:2 Changed 12 years ago by wmoore

  • Status changed from new to accepted

comment:3 Changed 12 years ago by jburel

  • Sprint changed from 2012-04-24 (13) to 2012-05-08 (14)

Moved from sprint 2012-04-24 (13)

comment:4 Changed 12 years ago by wmoore

  • Owner wmoore deleted
  • Status changed from accepted to new

comment:5 Changed 12 years ago by wmoore

  • Owner set to wmoore

comment:6 Changed 12 years ago by wmoore

  • Owner wmoore deleted

comment:7 Changed 12 years ago by wmoore

  • Owner set to wmoore

Use canEdit() to enable editing of name and description in metadata_general.html https://github.com/will-moore/openmicroscopy/commit/38b36793858bbba914275b7f379d9a570d0e2e75

comment:8 Changed 12 years ago by wmoore

  • Status changed from new to accepted

comment:9 Changed 12 years ago by wmoore

  • Resolution set to fixed
  • Status changed from accepted to closed

We will need to adopt a more flexible strategy based on finer granularity of permissions. See #8708, #8709.

Closing this...

comment:10 Changed 12 years ago by Will Moore <will@…>

(In [0f9fb462c47585670c80aa0290df0ec6e44d0e28/ome.git] on branch develop) Replacing isOwned with canEdit in tree templates. See #8435

comment:11 Changed 12 years ago by Will Moore <will@…>

(In [fa2a8790c0a9ee50f71070770f9de1b721f37247/ome.git] on branch develop) Replace isEditable() with canAnnotate() in metadata_general.html. See #8435

comment:12 Changed 12 years ago by Will Moore <will@…>

(In [38b36793858bbba914275b7f379d9a570d0e2e75/ome.git] on branch develop) Added manager.canEdit() method, enables edit of name & description. See #8435

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.70120 sec.)

We're Hiring!