nextcloud/lib/private/group
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
..
backend.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
database.php return int, not string 2014-06-24 21:54:57 +02:00
dummy.php extend Dummy user and group implementation to pass tests 2014-06-25 13:13:53 +02:00
example.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
group.php make search parameter optional, which is already the case in the medthod it is passed to 2014-06-02 12:53:59 +02:00
interface.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
manager.php drastic speedup for nested ldap groups 2014-06-13 00:04:06 +02:00
metadata.php Port of #9584 2014-07-16 12:23:26 +02:00