2012-02-20 14:26:22 +04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2012 Georg Ehrke <ownclouddev@georgswebsite.de>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
2012-04-17 21:31:29 +04:00
|
|
|
|
2012-05-01 20:50:31 +04:00
|
|
|
$user = OCP\USER::getUser();
|
2012-06-09 16:40:15 +04:00
|
|
|
$calid = $_POST['calid'];
|
2012-02-20 14:26:22 +04:00
|
|
|
$calendar = OC_Calendar_Calendar::find($calid);
|
|
|
|
if($calendar['userid'] != $user){
|
2012-05-03 14:23:29 +04:00
|
|
|
OCP\JSON::error();
|
2012-02-20 14:26:22 +04:00
|
|
|
exit;
|
|
|
|
}
|
2012-05-07 01:00:36 +04:00
|
|
|
$tmpl = new OCP\Template('calendar', 'share.dropdown');
|
2012-02-20 14:26:22 +04:00
|
|
|
$tmpl->assign('calid', $calid);
|
|
|
|
$tmpl->printPage();
|