The 'edit' and 'delete' views field_link handlers re-implement part of eck__entity_access(), by-passing it - and more inconveniently by-passing entity_access() completely. More inconveniently because if the 'access callback' has been hook_entity_info_alter'ed the handler ignores this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ekes’s picture

Status: Active » Needs review
FileSize
4.34 KB

Like this would be more flexible.

mihai_brb’s picture

There's this one that tries to fix the big picture:
https://www.drupal.org/node/1969394

legolasbo’s picture

The patch no longer applied. rerolled it agains latest head.

While doing so I undid the code reformatting to optimise for review. We can do the reformatting in a follow-up issue.

Status: Needs review » Needs work

The last submitted patch, 3: views_link_handler-2449619-3.patch, failed testing. View results

pifagor’s picture

Status: Needs work » Needs review
FileSize
2.75 KB

I recreated patch.

alex_optim’s picture

Looks good

pifagor’s picture

Status: Needs review » Reviewed & tested by the community

  • pifagor committed e840368 on 7.x-2.x
    Issue #2449619 by pifagor, ekes, legolasbo, alex_optim, mihai_brb: Views...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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