diff --git a/include/distribution.php b/include/distribution.php
index 3999728..6018873 100644
--- a/include/distribution.php
+++ b/include/distribution.php
@@ -462,11 +462,15 @@ class distribution {
"sUrl\">$this->sUrl",
array(sizeof($this->aTestingIds), "align=\"right\""));
+ // add actions if the current user has permission to edit this object
if($this->canEdit())
{
+ // enable the 'delete' action if this distribution has no testing results
if(!sizeof($this->aTestingIds))
+ {
$shDeleteLink = " [delete]";
+ }
$aCells[] = array(
"[