admin can always publish.
pull/63/head
noud 2012-11-09 11:35:32 +01:00
parent bcf5e58888
commit 911c9a8da6
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ $mayPublish = ($isAclPublish && $event['Event']['org'] == $me['org']);
// only show button if alert has not been sent // LATER show the ALERT button in red-ish
?>
<ul><li><?php
if ($mayPublish) {
if ($isAdmin || $mayPublish) {
echo $this->Form->postLink('Publish Event', array('action' => 'alert', $event['Event']['id']), null, 'Are you sure this event is complete and everyone should be informed?');
echo $this->Form->postLink('Publish (no email)', array('action' => 'publish', $event['Event']['id']), null, 'Publish but do NOT send alert email? Only for minor changes!');
}