summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-12-04 22:11:18 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-12-05 10:33:48 -0100
commit0f32f8119e1d27548732bb1468376959779c39cf (patch)
tree720585a60362ec44baafc7db3a9ad4dc1421c506 /lib/private/Share20
parentc1558af16da9126ad4da5db001bc5c8c92c8bc51 (diff)
downloadnextcloud-server-0f32f8119e1d27548732bb1468376959779c39cf.tar.gz
nextcloud-server-0f32f8119e1d27548732bb1468376959779c39cf.zip
using IShare::
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/Manager.php6
1 files changed, 3 insertions, 3 deletions
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;