I've got a view set up with nodes controlled by tac_lite, and while I can click each node's 'view' link and be presented with the 'Edit' local task tab and after clicking the 'Edit' tab, I can see the 'Delete' button, the links for 'edit' and 'delete' in the view table aren't showing. As uid 1, they do, so it doesn't appear to be a views config screw up.

I looked at views_handler_node_edit_destination and views_handler_node_delete_destination in views/modules/views_node.inc but they use node_access (which is what TAC uses I think?)

Comments

Dave Cohen’s picture

Status: Active » Postponed (maintainer needs more info)

What happens if you disable tac_lite?

Is this a standard node type like page or story, or is it a custom type with hook_access defined?

bsuttis’s picture

Standard node types, page and story.

If i disbale tac_lite and just edit Access Control permissions to include 'edit story/page' and 'edit own story/page' it works as expected.

With tac_lite I assume the only permission enabled at Access Control would be create, otherwise any node tagged with any taxonomy term is editable, no matter the tac_lite settings?

Dave Cohen’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Closed (works as designed)

The views handlers are brain dead. They are not actually loading the node. Just creating a dummy structure with the type. So permissions work, but it will not work with any node access module.

It's brain dead on purpose, though. Loading each node would be wildly inefficient. So my recommendation is don't include the node edit/delete links. If you really must, write your own handlers. Maybe use AJAX to present the page quickly and fill in the edit links later.

Or, you could submit this as an issue to the views module and ask for help there.