]> source.dussan.org Git - nextcloud-server.git/commitdiff
hide share tab in shared events
authorGeorg Ehrke <dev@georgswebsite.de>
Fri, 13 Apr 2012 20:20:19 +0000 (16:20 -0400)
committerGeorg Ehrke <dev@georgswebsite.de>
Fri, 13 Apr 2012 20:20:19 +0000 (16:20 -0400)
apps/calendar/ajax/event/edit.form.php
apps/calendar/ajax/event/new.form.php
apps/calendar/templates/part.eventform.php

index 8db0ba79406ad49b0dfd0723b22a65b8e4c0cdf1..986ab65ed03d9db2d58a730386d85d8831f21147 100644 (file)
@@ -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);
index c19928a727e48d48fabc8fad6491744f7cacdf78..69d1dc3f08b6322f269c7d7140ab12afc9607aea 100644 (file)
@@ -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);
index 05e37243a19f10da63066c9155fd69732a181a3e..3e12f2973e2ffadd30ffd2f1de8765664674a844 100644 (file)
@@ -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