I was trying to access a custom field with $account->field_foo in hook_node_access() with no avail.

I had to do the following to get the field data:

$user = user_load($account->uid);
$user->field_foo...

Is this a bug?

Comments

fenda’s picture

Issue summary: View changes

Sentence sounded weird.

Version: 7.10 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.