Implement correct project deletion

This commit is contained in:
Eike Foken
2011-09-20 23:55:57 +02:00
parent 4b2ca67e68
commit e52bb347ab
3 changed files with 40 additions and 10 deletions

View File

@@ -37,7 +37,15 @@
?>
</td>
<td><span class="active"><?=_('Successfully finished');?></span></td>
<td><a href="#"><?=_('Show results');?></a> | <?=anchor('projects/delete/' . $project['id'], _('Delete'));?>
<td>
<a href="#"><?=_('Show results');?></a>
<?php
if ($project['owner'] == $this->access->profile()->id):
?>
| <?=anchor('projects/delete/' . $project['id'], _('Delete'));?>
<?php
endif;
?>
</td>
</tr>
<?php