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