? .svn ? 311953_limit_assigned_users.patch Index: og_project.module =================================================================== RCS file: /cvs/drupal/contributions/modules/og_project/og_project.module,v retrieving revision 1.7 diff -u -p -r1.7 og_project.module --- og_project.module 19 Aug 2009 01:29:03 -0000 1.7 +++ og_project.module 26 Oct 2010 19:36:29 -0000 @@ -133,3 +133,22 @@ function og_project_token_values($type = } } +/** + * Implement hook_project_issue_assignees(). + */ +function og_project_project_issue_assignees(&$assigned, $node) { + + $assigned = array(); + if (isset($node->project_issue['pid'])){ + $pid = ($node->project_issue['pid']); + + if (user_access('assign and be assigned project issues')) { + // All active users are included if either anon or auth user has the perm. + $result = db_query("SELECT u.uid, name FROM {users} AS u JOIN {og_uid} as ogu ON (u.uid = ogu.uid) WHERE ogu.nid = %d AND u.status = 1", $pid); + + while ($assignee = db_fetch_object($result)) { + $assigned[$assignee->uid] = $assignee->name; + } + } + } +} \ No newline at end of file