Hi,

I installed your module today and found out it's incompatible with http://drupal.org/project/field_permission. Looks like even if a user/role doesn't have the permissions to set a required field Cp module still throws an error and shows another profile field to fill in.

Unfortunately don't have the time to come up with a patch right now. (low budget project)

Cheers

Comments

bartezz’s picture

Not sure if this is the best way to fix it but I changed the function entity_has_empty_required_fields() to also check for access;

if (!empty($instance['required']) && !field_get_items($entity_type, $entity, $instance['field_name']) && field_access('edit',field_info_field($instance['field_name']), $entity_type)) {
      return TRUE;
    }

I reckon I need also to check for access in function complete_profile_form(), will post if I need to fix this as well...

Cheers

dave reid’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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