[development] Restricting node reference by uid

E.J. Zufelt lists at zufelt.ca
Mon Sep 6 13:04:00 UTC 2010


Good morning,

I was able to setup the filter properly,  but you have raised an interesting point.

Should the filter then be all nodes with the uid of the current user on create, and all nodes with the same uid as the referencing node on edit?

Thanks,
Everett Zufelt
http://zufelt.ca

Follow me on Twitter
http://twitter.com/ezufelt

View my LinkedIn Profile
http://www.linkedin.com/in/ezufelt



On 2010-09-06, at 8:56 AM, Jerad Bitner wrote:

> One problem with the views filter I've had is that when you limit it
> by uid, and you try to edit someone else's content as admin, the
> nodereference is no longer available, because you are not the original
> user. Has anyone found a reliable way to filter by current user OR
> admin? I was unsuccessful last time I tried using views_or to try to
> do this.
> 
> On Mon, Sep 6, 2010 at 12:22 AM, Chris Skene <chris at xtfer.com> wrote:
>> Try creating a view filtering on nodes created by the current user, then use
>> that in the Nodereference settings.
>> On 06/09/2010, at 2:14 PM, E.J. Zufelt wrote:
>> 
>> Good evening,
>> I am wondering if it is possible to restrict the nodes displayed in the CCK
>> node reference field to only nodes created by the current user?  Currently I
>> believe all nodes that the current user can access are being returned.
>> Thanks in advance,
>> Everett Zufelt
>> http://zufelt.ca
>> Follow me on Twitter
>> http://twitter.com/ezufelt
>> 
>> View my LinkedIn Profile
>> http://www.linkedin.com/in/ezufelt
>> 
>> 
>> 
>> 
> 
> 
> 
> -- 
> ~Jerad Bitner
> Lead Developer and Drupal Trainer at Lullabot
> http://lullabot.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100906/d9c53022/attachment.html 


More information about the development mailing list