diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-02-04 20:32:41 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-02-12 10:49:55 +0100 |
commit | 7a8f95be2f92778c9e299e75e5ebfa29b773b497 (patch) | |
tree | 9207846d879f33d98920bb2fe3c4ae88601fa1e5 /settings/personal.php | |
parent | 2c899f1d438f2b093b7d41890606a32cf566750f (diff) | |
download | nextcloud-server-7a8f95be2f92778c9e299e75e5ebfa29b773b497.tar.gz nextcloud-server-7a8f95be2f92778c9e299e75e5ebfa29b773b497.zip |
Added overview of groups a user is a member of
Diffstat (limited to 'settings/personal.php')
-rw-r--r-- | settings/personal.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/personal.php b/settings/personal.php index f181c9cb2c1..7239df365f5 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -100,6 +100,12 @@ $tmpl->assign('enableAvatars', $config->getSystemValue('enable_avatars', true)); $tmpl->assign('avatarChangeSupported', OC_User::canUserChangeAvatar(OC_User::getUser())); $tmpl->assign('certs', $certificateManager->listCertificates()); +// Get array of group ids for this user +$groups = \OC::$server->getGroupManager()->getUserIdGroups(OC_User::getUser()); +$groups2 = array_map(function($group) { return $group->getGID(); }, $groups); +sort($groups2); +$tmpl->assign('groups', $groups2); + // add hardcoded forms from the template $l = OC_L10N::get('settings'); $formsAndMore = array(); |