diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-07-09 21:51:19 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-07-09 21:51:19 +0200 |
commit | d0b625352cc8acc160e22cb2f4e9ae8e10f753f6 (patch) | |
tree | 70ce62fafd75de45d7c1c5e9616ac5229ef7537e /lib/group.php | |
parent | acb196e17fb6d01a808e8758b5f852447cc03d99 (diff) | |
download | nextcloud-server-d0b625352cc8acc160e22cb2f4e9ae8e10f753f6.tar.gz nextcloud-server-d0b625352cc8acc160e22cb2f4e9ae8e10f753f6.zip |
some work on subadmins
Diffstat (limited to 'lib/group.php')
-rw-r--r-- | lib/group.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/group.php b/lib/group.php index ceee5fa4edb..fb280c157e8 100644 --- a/lib/group.php +++ b/lib/group.php @@ -271,4 +271,17 @@ class OC_Group { } return $users; } + + /** + * @brief get a list of all users in several groups + * @param array $gids + * @returns array with user ids + */ + public static function usersInGroups($gids){ + $users = array(); + foreach($gids as $gid){ + $users = array_merge(array_diff(self::usersInGroup($gid), $users), $users); + } + return $users; + } } |