diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2019-07-30 09:58:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 09:58:38 +0200 |
commit | d4eb8481fa124e5841a3dcecb1e34465af178ef6 (patch) | |
tree | 487140b3df263ebec369625b3ae3bab927beea5a /lib/private | |
parent | 53330ce1fc07029f1f5af2e7036bcae651dabf6b (diff) | |
parent | 98237d2a00fe2b3699211231f06f2cbf180d68c2 (diff) | |
download | nextcloud-server-d4eb8481fa124e5841a3dcecb1e34465af178ef6.tar.gz nextcloud-server-d4eb8481fa124e5841a3dcecb1e34465af178ef6.zip |
Merge pull request #16594 from nextcloud/tech-debt/noid/remove-unused-checkPasswordProtectedShare
Remove unused OC\Share\Share::checkPasswordProtectedShare
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 |