diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-13 16:20:19 -0400 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-13 16:20:19 -0400 |
commit | 854eaff34f8430cb94846903e2fe3eefb9703b1d (patch) | |
tree | 2b633dd4c8779e0306fffe61f899b849178dac56 /apps/calendar | |
parent | df2e788a1c29648d5d01f02166eef6cfb5a526c0 (diff) | |
download | nextcloud-server-854eaff34f8430cb94846903e2fe3eefb9703b1d.tar.gz nextcloud-server-854eaff34f8430cb94846903e2fe3eefb9703b1d.zip |
hide share tab in shared events
Diffstat (limited to 'apps/calendar')
-rw-r--r-- | apps/calendar/ajax/event/edit.form.php | 1 | ||||
-rw-r--r-- | apps/calendar/ajax/event/new.form.php | 1 | ||||
-rw-r--r-- | apps/calendar/templates/part.eventform.php | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/apps/calendar/ajax/event/edit.form.php b/apps/calendar/ajax/event/edit.form.php index 8db0ba79406..986ab65ed03 100644 --- a/apps/calendar/ajax/event/edit.form.php +++ b/apps/calendar/ajax/event/edit.form.php @@ -217,6 +217,7 @@ if($access == 'owner' || $access == 'rw'){ } $tmpl->assign('eventid', $id); +$tmpl->assign('access', $access); $tmpl->assign('lastmodified', $lastmodified); $tmpl->assign('calendar_options', $calendar_options); $tmpl->assign('category_options', $category_options); diff --git a/apps/calendar/ajax/event/new.form.php b/apps/calendar/ajax/event/new.form.php index c19928a727e..69d1dc3f08b 100644 --- a/apps/calendar/ajax/event/new.form.php +++ b/apps/calendar/ajax/event/new.form.php @@ -45,6 +45,7 @@ $repeat_byweekno_options = OC_Calendar_App::getByWeekNoOptions(); $repeat_bymonthday_options = OC_Calendar_App::getByMonthDayOptions(); $tmpl = new OC_Template('calendar', 'part.newevent'); +$tmpl->assign('access', 'owner'); $tmpl->assign('calendar_options', $calendar_options); $tmpl->assign('category_options', $category_options); $tmpl->assign('repeat_options', $repeat_options); diff --git a/apps/calendar/templates/part.eventform.php b/apps/calendar/templates/part.eventform.php index 05e37243a19..3e12f2973e2 100644 --- a/apps/calendar/templates/part.eventform.php +++ b/apps/calendar/templates/part.eventform.php @@ -9,7 +9,9 @@ echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid <li><a href="#tabs-2"><?php echo $l->t('Repeating'); ?></a></li> <li><a href="#tabs-3"><?php echo $l->t('Alarm'); ?></a></li> <li><a href="#tabs-4"><?php echo $l->t('Attendees'); ?></a></li> + <?php if($_['access'] == 'owner') { ?> <li><a href="#tabs-5"><?php echo $l->t('Share'); ?></a></li> + <?php } ?> </ul> <div id="tabs-1"> <table width="100%"> @@ -247,6 +249,8 @@ echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid </div> <div id="tabs-3">//Alarm</div> <div id="tabs-4">//Attendees</div> +<?php if($_['access'] == 'owner') { ?> <div id="tabs-5"> <?php echo $this->inc('share.dropdown'); ?> </div> +<?php } ?>
\ No newline at end of file |