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 #8708 (closed)

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

perms in jsTree

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

Description

Each node needs to have a more granular set of permissions than our current "locked":

  • canEdit
  • canAnnotate
  • canLink
  • canDelete

E.g.

<li id='project-{{ c.id }}' rel="project" class="canAnnotate canLink">

Then we can query this when enabling disabling toolbar buttons, drag/drop, right-click menu etc.

"start_drag" : function (obj) {return obj.hasClass("canLink");},

Provide helper getPermsCss() on Blitz Object wrapper to return the string E.g. "canAnnotate canLink".

This will be on my chmod_web branch.

Change History (5)

comment:1 Changed 12 years ago by wmoore

  • Status changed from new to accepted

comment:2 Changed 12 years ago by wmoore

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

Done in this commit (and previous) https://github.com/will-moore/openmicroscopy/commit/410d3c02ca4eda8f163b2cf4dc3fef5ac17dde3c

Need to update Blitz Gateway when canDelete and canLink methods are supported server-side.

Closing...

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

(In [91dfdd7bc483685272ae09bf3fb206b4af308343/ome.git] on branch develop) Adding placeholder Blitz canLink() canDelete(). See #8708

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

  • Remaining Time set to 0

(In [410d3c02ca4eda8f163b2cf4dc3fef5ac17dde3c/ome.git] on branch develop) jsTree nodes have class='canEdit..' etc. Closes #8708

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

(In [268da66346fe6b11a34593f1cd9f2af2248f4b4b/ome.git] on branch develop) Blitz now uses server canDelete() canLink(). See #8708

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

We're Hiring!