mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(manager): removed dead code
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
This commit is contained in:
parent
1a45dd0b8c
commit
67d5cb3cb8
1 changed files with 1 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue