[support] block visibility based on role AND path

Nick Young nick_young at ncsu.edu
Tue Oct 7 12:03:52 UTC 2008


This would work if there were only one path or one user to match to.

What if there are multiple paths, and multiple users to match?

IE:
return TRUE if user = Mark or Tom or Paul or Peter AND path = /path1 or 
/path2 or /path3

--Nick

........................................................................
Nick Young
Outreach, Communications & Consulting
Office of Information Technology
North Carolina State University
Box 7109, Raleigh 27695
Ph. 919.513.2716 | E-Mail: nick_young at ncsu.edu <mailto:nick_young at ncsu.edu>
........................................................................



Earnie Boyd wrote:
> So just change the condition.
>
> return ($user->uid == 10 && $_GET['q'] = 'my/uri/path')
>
> Earnie -- http://for-my-kids.com/
> -- http://give-me-an-offer.com/
>
>
>   



More information about the support mailing list