File left off from previous commit

pull/217/head
iglocska 2014-01-10 15:11:33 +01:00
parent 772f60ff40
commit 5fa7759e40
1 changed files with 8 additions and 4 deletions

View File

@ -307,10 +307,12 @@ if (!empty($event['Attribute'])):?>
<td class="short highlight2"></td> <td class="short highlight2"></td>
<td class="short action-links highlight2"> <td class="short action-links highlight2">
<?php <?php
if (($event['Event']['org'] == $me['org'] && $mayPublish) || $isSiteAdmin) { if (($event['Event']['orgc'] == $me['org'] && $mayModify) || $isSiteAdmin) {
echo $this->Html->link('', array('controller' => 'shadow_attributes', 'action' => 'accept', $shadowAttribute['id']), array('class' => 'icon-ok', 'title' => 'Accept')); echo $this->Html->link('', array('controller' => 'shadow_attributes', 'action' => 'accept', $shadowAttribute['id']), array('class' => 'icon-ok', 'title' => 'Accept'));
} }
if (($event['Event']['orgc'] == $me['org'] && $mayModify) || $isSiteAdmin || ($shadowAttribute['org'] == $me['org'])) {
echo $this->Form->postLink('', array('controller' => 'shadow_attributes', 'action' => 'discard', $shadowAttribute['id']), array('class' => 'icon-trash', 'title' => 'Discard'), 'Are you sure you want to discard this proposal?'); echo $this->Form->postLink('', array('controller' => 'shadow_attributes', 'action' => 'discard', $shadowAttribute['id']), array('class' => 'icon-trash', 'title' => 'Discard'), 'Are you sure you want to discard this proposal?');
}
?> ?>
</td> </td>
</tr> </tr>
@ -384,10 +386,12 @@ if (!empty($event['Attribute'])):?>
<td class="short highlight2"></td> <td class="short highlight2"></td>
<td class="short action-links highlight2"> <td class="short action-links highlight2">
<?php <?php
if (($event['Event']['org'] == $me['org'] && $mayPublish) || $isSiteAdmin) { if (($event['Event']['orgc'] == $me['org'] && $mayModify) || $isSiteAdmin) {
echo $this->Html->link('', array('controller' => 'shadow_attributes', 'action' => 'accept', $remain['id']), array('class' => 'icon-ok', 'title' => 'Accept')); echo $this->Html->link('', array('controller' => 'shadow_attributes', 'action' => 'accept', $remain['id']), array('class' => 'icon-ok', 'title' => 'Accept'));
} }
if (($event['Event']['orgc'] == $me['org'] && $mayModify) || $isSiteAdmin || ($remain['org'] == $me['org'])) {
echo $this->Form->postLink('', array('controller' => 'shadow_attributes', 'action' => 'discard', $remain['id']), array('class' => 'icon-trash', 'title' => 'Discard'), 'Are you sure you want to discard this proposal?'); echo $this->Form->postLink('', array('controller' => 'shadow_attributes', 'action' => 'discard', $remain['id']), array('class' => 'icon-trash', 'title' => 'Discard'), 'Are you sure you want to discard this proposal?');
}
?> ?>
</td> </td>
</tr> </tr>