DraggableViews with hierarchy is amazing, but sadly is only viewable with the draggable access permission. If a user wants to view the page, but is not supposed to have dragging access (or perhaps does not have access to edit the entities), the hierarchy is also not shown.
I have made a quick patch to allow indentation even without the draggable access permission. It appears that the access check is not necessary anyways at this stage, since it is literally checked everywhere else. So with this patch, indentation is possible, but the user cannot drag or edit the order.
Patch will follow shortly. Please review.
Comment | File | Size | Author |
---|---|---|---|
#5 | show_hierarchy_indentation_even_without_draggable_access-2852520-5.patch | 1.13 KB | NWOM |
Comments
Comment #2
NWOM CreditAttribution: NWOM commentedComment #3
NWOM CreditAttribution: NWOM commentedSomething is messed up with the patch. I am currently debugging it.
Comment #4
NWOM CreditAttribution: NWOM commentedAttached is a new patch that successfully makes it possible. I'm however not sure if this is the best way of going about it. Please review.
Comment #5
NWOM CreditAttribution: NWOM commented#4 no longer applied to the newest dev. Here is a reroll.
Comment #7
iStryker CreditAttribution: iStryker commentedCode looks clean. Tested on simpletest.me with patch. Does as described. Committed.