I created an entity form which contains 2 fields that have to be editable in views for an additional role (Supermoderator) As long as I'm logged in as admin everything works well, but logged in as supermod I only get the view and no editable fields. The link to edit the form is also working for the supermod but this is no solution because the two fields are hidden by CSS.

clean new install on drupal 7.20

Views 7.x-3.5
Entityforms 7.x-1.0
Editable Fields 7.x-1.0-alpha2

No other access-modules installed.

Thanks in advance for help

Comments

geraldito’s picture

Seems to be a similar issue to the one described here for Editable Fields on Drupal 6: http://drupal.org/node/488816

A quick and dirty solution is to just disable the access rights check and show the editable field in any case, you can do that commenting lines 194-197 in editablefields.module. But take care, if you don't limit the access to the view by roles or similar everybody will be able to edit the values.

  /*if (!entity_access('update', $entity_type, $entity) || !field_access('edit', $field, $entity_type, $entity)) {
    // Can't edit.
    return editablefields_fallback_formatter($entity_type, $entity, $field, $instance, $langcode, $items, $display);
  }*/
maxplus’s picture

Hi,

Thanks for the dirty solution,

this is for the moment my only working solution to solve the issue that certain roles cannot use editable fields even when they have permission to do that?

dags’s picture

Status: Active » Postponed (maintainer needs more info)

#1730600: "Use editablefields" permission was committed in the latest dev release. Could you please test using that release and let me know if the issue still remains.

tomrog’s picture

I also have a problem with editable entity form fields. My only question is:
Does entity forms work with editable fields?
I have a views with fields (usual ones + entityform fields) and those from entityform are not showing as editable.
Version of editablefields doesn't matter - I tried using 7.x-1.0-alpha2 and 7.x-1.x-dev - results are the same.

Any ideas?

gilfo1’s picture

Issue summary: View changes

Same problem here. The dirty method above worked. But this functionality, which I couldn't get to work without this edit, was what I though this module was for. :)

milos.kroulik’s picture

This seems to be a duplicate of https://www.drupal.org/node/488816