}
$tmpl->assign('eventid', $id);
+$tmpl->assign('access', $access);
$tmpl->assign('lastmodified', $lastmodified);
$tmpl->assign('calendar_options', $calendar_options);
$tmpl->assign('category_options', $category_options);
$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);
<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%">
</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