]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(manager): removed dead code 42361/head
authorEduardo Morales <emoral435@gmail.com>
Mon, 18 Dec 2023 18:03:46 +0000 (12:03 -0600)
committerEduardo Morales <emoral435@gmail.com>
Mon, 18 Dec 2023 18:29:50 +0000 (12:29 -0600)
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
lib/private/Share20/Manager.php

index 0188c0897d9d3dabd1876ca8be90e4edf2352660..31f3924f053819a8e977dd649a509a133d23deb6 100644 (file)
@@ -1573,14 +1573,8 @@ class Manager implements IManager {
         * @return bool
         */
        public function checkPassword(IShare $share, $password) {
-               $passwordProtected = $share->getShareType() !== IShare::TYPE_LINK
-                       || $share->getShareType() !== IShare::TYPE_EMAIL
-                       || $share->getShareType() !== IShare::TYPE_CIRCLE;
-               if (!$passwordProtected) {
-                       //TODO maybe exception?
-                       return false;
-               }
 
+               // if there is no password on the share object / passsword is null, there is nothing to check
                if ($password === null || $share->getPassword() === null) {
                        return false;
                }