diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-07-29 15:23:21 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-07-29 15:23:21 +0200 |
commit | 98237d2a00fe2b3699211231f06f2cbf180d68c2 (patch) | |
tree | ec0249798dba9740b527435ee5beaa1fffa8caf2 /lib/private | |
parent | 51197ac62216c6ed8e18af3e0a8e8323684d6955 (diff) | |
download | nextcloud-server-98237d2a00fe2b3699211231f06f2cbf180d68c2.tar.gz nextcloud-server-98237d2a00fe2b3699211231f06f2cbf180d68c2.zip |
Remove unused OC\Share\Share::checkPasswordProtectedShare
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Share/Share.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index 424fe8a2382..86101707dbf 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -1327,35 +1327,6 @@ class Share extends Constants { } /** - * In case a password protected link is not yet authenticated this function will return false - * - * @param array $linkItem - * @return boolean - */ - public static function checkPasswordProtectedShare(array $linkItem) { - if (!isset($linkItem['share_with'])) { - return true; - } - if (!isset($linkItem['share_type'])) { - return true; - } - if (!isset($linkItem['id'])) { - return true; - } - - if ($linkItem['share_type'] != \OCP\Share::SHARE_TYPE_LINK) { - return true; - } - - if ( \OC::$server->getSession()->exists('public_link_authenticated') - && \OC::$server->getSession()->get('public_link_authenticated') === (string)$linkItem['id'] ) { - return true; - } - - return false; - } - - /** * construct select statement * @param int $format * @param boolean $fileDependent ist it a file/folder share or a generla share |