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