summaryrefslogtreecommitdiffstats
path: root/lib/private/group/manager.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-19 15:35:58 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-19 15:36:16 +0100
commit9ec2850c78e673a4aa1c4af97aa5be4414bd438f (patch)
tree6d127c4443d5fd6a69f7577dfd0dc8c3d01e9f26 /lib/private/group/manager.php
parent58eaeb267c60ed2aed4b5592a28d16f5453bb773 (diff)
downloadnextcloud-server-9ec2850c78e673a4aa1c4af97aa5be4414bd438f.tar.gz
nextcloud-server-9ec2850c78e673a4aa1c4af97aa5be4414bd438f.zip
Use mocks when testing isSharingDisabledForUser
Diffstat (limited to 'lib/private/group/manager.php')
-rw-r--r--lib/private/group/manager.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php
index 73ff0e537c6..40018370af5 100644
--- a/lib/private/group/manager.php
+++ b/lib/private/group/manager.php
@@ -214,6 +214,9 @@ class Manager extends PublicEmitter implements IGroupManager {
* @return \OC\Group\Group[]
*/
public function getUserGroups($user) {
+ if (is_null($user)) {
+ return false;
+ }
return $this->getUserIdGroups($user->getUID());
}