Closed (outdated)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2013 at 16:17 UTC
Updated:
20 Jul 2026 at 18:34 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commentedSince neither of these two fields are in core, it's a little tough to justify this being in CTools directly. And since it's supporting multiple reference types, it can't really be in the respective modules. So I'm not really sure what to do about this. It probably stands to be its own module, but then...nobody will find it.
Though realistically, access plugins that work on reference fields are conceptually wrong. The actual context should be loaded via a relationship, and then the access plugin should work directly on the context. Then you wouldn't need this plugin at all; you can just use the 'context exists' plugin instead to see if it loaded a user. Assuming the proper relationship actually exists -- but that really is up to the module that provides the reference field.
I'll leave this for the moment.
Comment #2
jonhattanMy first attempt was to use a relationship, but I needed to check access over a multivalued field.
AFAIK a relationship can't provide multiple values, isn't it? The only example I've found is
terms_from_node.inc, and this is a special case.Comment #4
chris matthews commentedThe 6 year old patch to user_in_reference.inc applied cleanly to the latest ctools 7.x-1.x-dev, but still needs to be officially reviewed and tested by the community.
Comment #5
japerryDrupal 7 is no longer supported, closing.