menu_get_object() ought to do it.<br><br><div class="gmail_quote">On Mon, Sep 6, 2010 at 12:02 PM, Earl Miles <span dir="ltr"><<a href="mailto:merlin@logrus.com">merlin@logrus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 9/6/2010 5:56 AM, Jerad Bitner wrote:<br>
> One problem with the views filter I've had is that when you limit it<br>
> by uid, and you try to edit someone else's content as admin, the<br>
> nodereference is no longer available, because you are not the original<br>
> user. Has anyone found a reliable way to filter by current user OR<br>
> admin? I was unsuccessful last time I tried using views_or to try to<br>
> do this.<br>
<br>
</div>Assuming the nodereference filter can receive the nid of the node being<br>
edited as an argument (that's the part I'm unclear on, but you can't do<br>
this if you can't somehow get the node) then you need some PHP argument<br>
code that attempts to load the node. If lot loads, return $node->uid; if<br>
not, return $GLOBALS['user']->uid.<br>
</blockquote></div><br>