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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NWOM created an issue. See original summary.

NWOM’s picture

NWOM’s picture

Status: Needs review » Needs work

Something is messed up with the patch. I am currently debugging it.

NWOM’s picture

Attached 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.

NWOM’s picture

  • NWOM authored ee9a918 on 7.x-2.x
    Issue #2852520 by NWOM: Show Hierarchy Indentation even without...
iStryker’s picture

Status: Needs review » Fixed

Code looks clean. Tested on simpletest.me with patch. Does as described. Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.