Project:Node access user reference
Version:7.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hello. Are the maintainers of this module planning on providing integration with the Entity Reference module? Currently it looks like References is on a path to being deprecated and replaced by Entity Reference.

Comments

#1

I guess we'll have to support whatever they migrate their users to.

I maintain five 'reference' related modules, and at least two others that integrate with references. I think using the relation module would be good too.

I can't make a generic "entity access entity reference" as of Drupal 7 though, since the access system currently only applies to nodes.

#2

Title:Node Access User Reference support for Entity Reference» Support for Entity Reference
Status:active» needs review

I quickly knocked up a patch to support entityreference, it is against the current 7.x-3.x repository.

Please try it out.

AttachmentSize
nodeaccess_userreference_1432812_entityreference_1.patch 4.84 KB

#3

because of the way entityreference works you might have to go into the config twice before seeing the settings of this module?
nope it's fine

#4

@danielb - Thanks for the quick response. I will try out this patch as soon as I have a spare moment and report back my findings.

#5

For anyone else that is testing this out, please note that you must enable Entity Reference prior to enabling nodeaccess_userreference.

#6

I have not run into any issues with this patch so far.

#7

Status:needs review» fixed

OK I'll commit that then.

#8

Status:fixed» closed (fixed)

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

nobody click here