diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-19 15:35:58 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-19 15:36:16 +0100 |
commit | 9ec2850c78e673a4aa1c4af97aa5be4414bd438f (patch) | |
tree | 6d127c4443d5fd6a69f7577dfd0dc8c3d01e9f26 /lib/public | |
parent | 58eaeb267c60ed2aed4b5592a28d16f5453bb773 (diff) | |
download | nextcloud-server-9ec2850c78e673a4aa1c4af97aa5be4414bd438f.tar.gz nextcloud-server-9ec2850c78e673a4aa1c4af97aa5be4414bd438f.zip |
Use mocks when testing isSharingDisabledForUser
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/util.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 76b61347d46..07bc47c18b4 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -173,7 +173,11 @@ class Util { * @since 7.0.0 */ public static function isSharingDisabledForUser() { - return \OC_Util::isSharingDisabledForUser(); + return \OC_Util::isSharingDisabledForUser( + \OC::$server->getConfig(), + \OC::$server->getGroupManager(), + \OC::$server->getUserSession()->getUser() + ); } /** |