apps/files_sharing/lib/Helper.php 1 location
|
@@ 157-163 (lines=7) @@
|
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
} |
| 157 |
|
else { |
| 158 |
|
// not authenticated ? |
| 159 |
|
if ( ! \OC::$server->getSession()->exists('public_link_authenticated') |
| 160 |
|
|| \OC::$server->getSession()->get('public_link_authenticated') !== (string)$linkItem['id']) { |
| 161 |
|
return false; |
| 162 |
|
} |
| 163 |
|
} |
| 164 |
|
return true; |
| 165 |
|
} |
| 166 |
|
|
lib/private/Share/Share.php 1 location
|
@@ 2517-2520 (lines=4) @@
|
| 2514 |
|
return true; |
| 2515 |
|
} |
| 2516 |
|
|
| 2517 |
|
if ( \OC::$server->getSession()->exists('public_link_authenticated') |
| 2518 |
|
&& \OC::$server->getSession()->get('public_link_authenticated') === (string)$linkItem['id'] ) { |
| 2519 |
|
return true; |
| 2520 |
|
} |
| 2521 |
|
|
| 2522 |
|
return false; |
| 2523 |
|
} |