From 0f32f8119e1d27548732bb1468376959779c39cf Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Wed, 4 Dec 2019 22:11:18 -0100 Subject: using IShare:: Signed-off-by: Maxence Lange --- lib/private/Share20/Manager.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/private/Share20') diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 57a129e492c..6d2836a2337 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1444,9 +1444,9 @@ class Manager implements IManager { * @return bool */ public function checkPassword(\OCP\Share\IShare $share, $password) { - $passwordProtected = $share->getShareType() !== \OCP\Share::SHARE_TYPE_LINK - || $share->getShareType() !== \OCP\Share::SHARE_TYPE_EMAIL - || $share->getShareType() !== \OCP\Share::SHARE_TYPE_CIRCLE; + $passwordProtected = $share->getShareType() !== IShare::TYPE_LINK + || $share->getShareType() !== IShare::TYPE_EMAIL + || $share->getShareType() !== IShare::TYPE_CIRCLE; if (!$passwordProtected) { //TODO maybe exception? return false; -- cgit v1.2.3