minor cleanups; password-protected shares now work again

master
Michał 'rysiek' Woźniak 2014-02-09 22:20:14 +01:00
parent 92a3b64708
commit e7741e3ec8
1 changed files with 2 additions and 3 deletions

View File

@ -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);