Fix lint
parent
829bbff02a
commit
a59860e654
|
@ -248,8 +248,8 @@ class ApiBase extends Controller
|
|||
// Check if share is password protected
|
||||
if (($password = $share->getPassword()) !== null) {
|
||||
// https://github.com/nextcloud/server/blob/0447b53bda9fe95ea0cbed765aa332584605d652/lib/public/AppFramework/PublicShareController.php#L119
|
||||
if ($this->session->get('public_link_authenticated_token') !== $token ||
|
||||
$this->session->get('public_link_authenticated_password_hash') !== $password) {
|
||||
if ($this->session->get('public_link_authenticated_token') !== $token
|
||||
|| $this->session->get('public_link_authenticated_password_hash') !== $password) {
|
||||
throw new \Exception('Share is password protected and user is not authenticated');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue