diff options
author | Robin Appelman <robin@icewind.nl> | 2018-06-19 16:23:02 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-06-19 16:23:02 +0200 |
commit | 8a1cbbd90e73b44f1884b4a65fe4c55d40d377e9 (patch) | |
tree | cf3cd4279835e6cb8cf8aa30bb6f2d522bbf1415 /lib/private/Group/MetaData.php | |
parent | c3aea9cdf6d88895b1a1fc54ead9a2f0aa792cd3 (diff) | |
download | nextcloud-server-8a1cbbd90e73b44f1884b4a65fe4c55d40d377e9.tar.gz nextcloud-server-8a1cbbd90e73b44f1884b4a65fe4c55d40d377e9.zip |
Don't pretend we can add/remove users to/from groups when we can't
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Group/MetaData.php')
-rw-r--r-- | lib/private/Group/MetaData.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Group/MetaData.php b/lib/private/Group/MetaData.php index 497dcf72b59..f4877237ec7 100644 --- a/lib/private/Group/MetaData.php +++ b/lib/private/Group/MetaData.php @@ -165,7 +165,9 @@ class MetaData { 'id' => $group->getGID(), 'name' => $group->getDisplayName(), 'usercount' => $this->sorting === self::SORT_USERCOUNT ? $group->count($userSearch) : 0, - 'disabled' => $group->countDisabled() + 'disabled' => $group->countDisabled(), + 'canAdd' => $group->canAddUser(), + 'canRemove' => $group->canRemoveUser(), ); } |