xtuple/xtuple — pull request #980 by bendiy (2013-10-30 22:18:30+00:00)
Title: Issue #21190 New pass at personal privs using an array of usernames.

DO NOT MERGE THIS... yet.

John,

If you have a chance to review this approach to personal privs, please let me know if you see any issues with it. I probably don't want to add this to the base Address ORM, but I'm planning on doing this for custom ORMs for objects Drupal will need.

This adds a toMany property of usernames to Address and does a personal priv check to see if the passed in user is in the array.