From 854eaff34f8430cb94846903e2fe3eefb9703b1d Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Fri, 13 Apr 2012 16:20:19 -0400 Subject: [PATCH] hide share tab in shared events --- apps/calendar/ajax/event/edit.form.php | 1 + apps/calendar/ajax/event/new.form.php | 1 + apps/calendar/templates/part.eventform.php | 4 ++++ 3 files changed, 6 insertions(+) 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
  • t('Repeating'); ?>
  • t('Alarm'); ?>
  • t('Attendees'); ?>
  • +
  • t('Share'); ?>
  • +
    @@ -247,6 +249,8 @@ echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid
    //Alarm
    //Attendees
    +
    inc('share.dropdown'); ?>
    + \ No newline at end of file -- 2.39.5