hide share tab in shared events

remotes/origin/stable4
Georg Ehrke 13 years ago
parent df2e788a1c
commit 854eaff34f
  1. 1
      apps/calendar/ajax/event/edit.form.php
  2. 1
      apps/calendar/ajax/event/new.form.php
  3. 4
      apps/calendar/templates/part.eventform.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);

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

@ -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 } ?>
Loading…
Cancel
Save