do not allow adding events and showing tasks

This commit is contained in:
Uwe Steinmann 2019-11-20 17:50:26 +01:00
parent 84550836c8
commit 833ff8f7da
2 changed files with 5 additions and 1 deletions

View File

@ -334,7 +334,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
echo " </li>\n";
echo " </ul>\n";
if($this->params['enablemenutasks']) {
if($this->params['enablemenutasks'] && !$this->params['user']->isGuest()) {
echo " <div id=\"menu-tasks\">";
echo " <div class=\"ajax\" data-no-spinner=\"true\" data-view=\"Tasks\" data-action=\"menuTasks\"></div>";
// echo " <ul id=\"main-menu-tasks\" class=\"nav pull-right\">\n";

View File

@ -224,6 +224,8 @@ class SeedDMS_View_Calendar extends SeedDMS_Bootstrap_Style {
} /* }}} */
function js() { /* {{{ */
$dms = $this->params['dms'];
$user = $this->params['user'];
$strictformcheck = $this->params['strictformcheck'];
header('Content-Type: application/javascript');
?>
@ -232,6 +234,7 @@ class SeedDMS_View_Calendar extends SeedDMS_Bootstrap_Style {
$('#calendar').fullCalendar({
height: $(window).height()-210,
locale: '<?php echo substr($this->params['session']->getLanguage(), 0, 2); ?>',
<?php if(!$user->isGuest()) { ?>
customButtons: {
addEventButton: {
text: '<?php printMLText('add_event'); ?>',
@ -241,6 +244,7 @@ class SeedDMS_View_Calendar extends SeedDMS_Bootstrap_Style {
}
}
},
<?php } ?>
header: {
left: 'prev,next today addEventButton',
center: 'title',