apps/files_sharing/lib/helper.php 1 location
|
@@ 154-160 (lines=7) @@
|
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
} |
| 154 |
|
else { |
| 155 |
|
// not authenticated ? |
| 156 |
|
if ( ! \OC::$server->getSession()->exists('public_link_authenticated') |
| 157 |
|
|| \OC::$server->getSession()->get('public_link_authenticated') !== $linkItem['id']) { |
| 158 |
|
return false; |
| 159 |
|
} |
| 160 |
|
} |
| 161 |
|
return true; |
| 162 |
|
} |
| 163 |
|
|
lib/private/share/share.php 1 location
|
@@ 2407-2410 (lines=4) @@
|
| 2404 |
|
return true; |
| 2405 |
|
} |
| 2406 |
|
|
| 2407 |
|
if ( \OC::$server->getSession()->exists('public_link_authenticated') |
| 2408 |
|
&& \OC::$server->getSession()->get('public_link_authenticated') === $linkItem['id'] ) { |
| 2409 |
|
return true; |
| 2410 |
|
} |
| 2411 |
|
|
| 2412 |
|
return false; |
| 2413 |
|
} |
apps/files_sharing/lib/connector/publicauth.php 1 location
|
@@ 91-96 (lines=6) @@
|
| 88 |
|
|
| 89 |
|
} |
| 90 |
|
return true; |
| 91 |
|
} else if (\OC::$server->getSession()->exists('public_link_authenticated') |
| 92 |
|
&& \OC::$server->getSession()->get('public_link_authenticated') === $linkItem['id']) { |
| 93 |
|
return true; |
| 94 |
|
} else { |
| 95 |
|
return false; |
| 96 |
|
} |
| 97 |
|
} else if ($linkItem['share_type'] == \OCP\Share::SHARE_TYPE_REMOTE) { |
| 98 |
|
return true; |
| 99 |
|
} else { |