server/settings
Stephan Peijnik 4d74aa09bf Port of #9584
Fixes #9583

lib/private/group/metadata.php: For subadmins also return an array of groups, indexed by their GIDs.
settings/users.php: Convert array of arrays to array of GIDs before calling into OC_Group::displayNamesInGroups.

Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>

Fix indentation.

Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>

Renamed $grp to $group in foreach loop.

Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>

Use is_null() instead of empty() when checking the return value of GroupManager::get().

Additionally, $grp was renamed to $group inside
 \OC\Group\MetaData::fetchGroups().

Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>

Updated code to reflect changes introduced to \OC\Group\MetaData.

Now that fetchGroups() does not exist anymore and getGroups() is called
directory, the 'groups' property does not exist anymore.
Instead, we now generate that array on the fly and return it from getGroups.

Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>
2014-07-16 12:23:26 +02:00
..
admin Fix test mail behaviour 2014-06-25 15:32:40 +02:00
ajax remove dead code 2014-07-14 21:26:37 +02:00
changepassword remove legacy aka deprecated code: OC_FilesystemView 2014-05-12 16:30:39 +02:00
css add link to contribute and promote pages in personal settings 2014-07-02 17:41:26 +02:00
img remove shadow effects from settings icons, reduce size 2014-07-02 19:50:58 +02:00
js Merge pull request #9628 from edozzo/master 2014-07-15 19:10:01 +02:00
l10n [tx-robot] updated from transifex 2014-07-16 01:55:55 -04:00
templates increase/decrease everyone count on user creation/deletion 2014-07-09 14:32:10 +02:00
admin.php Fixes typo with sendmail detection - fixes #9203 2014-06-30 15:01:12 +02:00
apps.php Add option to enable app for specific groups 2014-06-03 12:42:35 +02:00
help.php killing some more calls to OC_App::loadApps(); - because we load all apps in handleRequest() 2014-03-25 17:42:41 +01:00
languageCodes.php remove ru_RU - fixes #3135 2013-08-17 11:43:37 +02:00
personal.php Add Turkish to common languages 2014-06-05 22:32:35 +02:00
routes.php Merge branch 'master' into update_shipped_apps_from_appstore 2014-06-05 22:54:27 +02:00
settings.php killing some more calls to OC_App::loadApps(); - because we load all apps in handleRequest() 2014-03-25 17:42:41 +01:00
users.php Port of #9584 2014-07-16 12:23:26 +02:00