apps/files_sharing/lib/Helper.php 1 location
|
@@ 153-159 (lines=7) @@
|
| 150 |
|
.' for share id '.$linkItem['id'], \OCP\Util::ERROR); |
| 151 |
|
return false; |
| 152 |
|
} |
| 153 |
|
} else { |
| 154 |
|
// not authenticated ? |
| 155 |
|
if (! \OC::$server->getSession()->exists('public_link_authenticated') |
| 156 |
|
|| \OC::$server->getSession()->get('public_link_authenticated') !== (string)$linkItem['id']) { |
| 157 |
|
return false; |
| 158 |
|
} |
| 159 |
|
} |
| 160 |
|
return true; |
| 161 |
|
} |
| 162 |
|
|
lib/private/Share/Share.php 1 location
|
@@ 494-497 (lines=4) @@
|
| 491 |
|
return true; |
| 492 |
|
} |
| 493 |
|
|
| 494 |
|
if (\OC::$server->getSession()->exists('public_link_authenticated') |
| 495 |
|
&& \OC::$server->getSession()->get('public_link_authenticated') === (string)$linkItem['id']) { |
| 496 |
|
return true; |
| 497 |
|
} |
| 498 |
|
|
| 499 |
|
return false; |
| 500 |
|
} |