minor cleanups; password-protected shares now work again
parent
92a3b64708
commit
e7741e3ec8
|
@ -5,7 +5,7 @@
|
|||
* later.
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
|
||||
OCP\App::checkAppEnabled('calendar');
|
||||
|
||||
function calendar404($msg=null) {
|
||||
|
@ -32,8 +32,7 @@ if (\OC_Appconfig::getValue('core', 'shareapi_allow_links', 'yes') !== 'yes')
|
|||
|
||||
if (isset($_GET['t'])) {
|
||||
$token = $_GET['t'];
|
||||
$linkItem = OCP\Share::getShareByToken($token);
|
||||
//var_dump($linkItem);
|
||||
$linkItem = OCP\Share::getShareByToken($token, false);
|
||||
if (is_array($linkItem) && isset($linkItem['uid_owner'])) {
|
||||
// seems to be a valid share
|
||||
$rootLinkItem = OCP\Share::resolveReShare($linkItem);
|
||||
|
|
Loading…
Reference in New Issue