/[drupal]/contributions/modules/subuser/subuser.patch
ViewVC logotype

Contents of /contributions/modules/subuser/subuser.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Oct 14 03:17:09 2009 UTC (6 weeks, 2 days ago) by boombatower
Branch: MAIN
CVS Tags: DRUPAL-6--1-2, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-patch
#572038: Create 'administer subusers' permission.
1 Index: modules/user/user.module
2 ===================================================================
3 RCS file: /cvs/drupal/drupal/modules/user/user.module,v
4 retrieving revision 1.892.2.15
5 diff -u -r1.892.2.15 user.module
6 --- modules/user/user.module 10 Aug 2009 11:34:59 -0000 1.892.2.15
7 +++ modules/user/user.module 8 Sep 2009 22:09:55 -0000
8 @@ -1986,6 +1986,15 @@
9 'join' => '',
10 'options' => array(1 => t('active'), 0 => t('blocked')),
11 );
12 +
13 + // Subuser filter.
14 + global $user;
15 + $filters['subuser'] = array(
16 + 'title' => 'parent',
17 + 'join' => 'JOIN {user_relationship} subuser ON u.uid = subuser.uid',
18 + 'where' => 'subuser.parent_id = %d',
19 + 'options' => array($user->uid => $user->name),
20 + );
21 return $filters;
22 }
23

  ViewVC Help
Powered by ViewVC 1.1.2