We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f1acd1 commit 24f97a5Copy full SHA for 24f97a5
1 file changed
lib/private/Share20/Manager.php
@@ -1573,14 +1573,8 @@ protected function checkShare(IShare $share): void {
1573
* @return bool
1574
*/
1575
public function checkPassword(IShare $share, $password) {
1576
- $passwordProtected = $share->getShareType() !== IShare::TYPE_LINK
1577
- || $share->getShareType() !== IShare::TYPE_EMAIL
1578
- || $share->getShareType() !== IShare::TYPE_CIRCLE;
1579
- if (!$passwordProtected) {
1580
- //TODO maybe exception?
1581
- return false;
1582
- }
1583
+ // if there is no password on the share object / passsword is null, there is nothing to check
1584
if ($password === null || $share->getPassword() === null) {
1585
return false;
1586
}
0 commit comments