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
|
@@ 2302-2305 (lines=4) @@
|
2299 |
|
return true; |
2300 |
|
} |
2301 |
|
|
2302 |
|
if (\OC::$server->getSession()->exists('public_link_authenticated') |
2303 |
|
&& \OC::$server->getSession()->get('public_link_authenticated') === (string)$linkItem['id']) { |
2304 |
|
return true; |
2305 |
|
} |
2306 |
|
|
2307 |
|
return false; |
2308 |
|
} |