<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -256,7 +256,17 @@ class AddonController extends AddonsController {
   }
 
    public function Delete($AddonID = '') {
-      $this-&gt;Permission('Addons.Addon.Manage');
+      $Session = Gdn::Session();
+      if (!$Session-&gt;IsValid())
+         $this-&gt;Form-&gt;AddError('You must be authenticated in order to use this form.');
+
+      $Addon = $this-&gt;AddonModel-&gt;GetID($AddonID);
+      if (!$Addon)
+         Redirect('garden/home/filenotfound');
+
+      if ($Session-&gt;UserID != $Addon-&gt;InsertUserID)
+			$this-&gt;Permission('Addons.Addon.Manage');
+
       $Session = Gdn::Session();
       if (is_numeric($AddonID)) 
          $this-&gt;AddonModel-&gt;Delete($AddonID);</diff>
      <filename>controllers/addon.php</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,7 @@ if ($this-&gt;DeliveryType() == DELIVERY_TYPE_ALL)
       &lt;h2&gt;&lt;?php echo Gdn::Translate('Upload a New Version'); ?&gt;&lt;/h2&gt;
       &lt;ul&gt;
          &lt;li&gt;
-            &lt;div class=&quot;Info&quot;&gt;&lt;?php echo Gdn::Translate('By uploading a file you certify that you have the right to distribute this picture and that it does not violate the Terms of Service.'); ?&gt;&lt;/div&gt;
+            &lt;div class=&quot;Info&quot;&gt;&lt;?php echo Gdn::Translate('By uploading a file you certify that you have the right to distribute this addon and that it does not violate the Terms of Service.'); ?&gt;&lt;/div&gt;
             &lt;?php echo $this-&gt;Form-&gt;Label('File to Upload (2mb max)', 'File'); ?&gt;
             &lt;?php echo $this-&gt;Form-&gt;Input('File', 'file', array('class' =&gt; 'File')); ?&gt;
          &lt;/li&gt;</diff>
      <filename>views/addon/newversion.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b1b92b88274f59acaff82b595d80651ae3e3073d</id>
    </parent>
  </parents>
  <author>
    <name>mark</name>
    <email>mark@lussumo.com</email>
  </author>
  <url>http://github.com/lussumo/VanillaAddons/commit/ad4c4f7b99f0f75368314b7da2b873e46608400b</url>
  <id>ad4c4f7b99f0f75368314b7da2b873e46608400b</id>
  <committed-date>2009-10-08T07:25:52-07:00</committed-date>
  <authored-date>2009-10-08T07:25:52-07:00</authored-date>
  <message>Allowing users to delete their own addons.
Fixed language typo.</message>
  <tree>6afd4729a23d84ac108fb39f3c233bbaacaab716</tree>
  <committer>
    <name>mark</name>
    <email>mark@lussumo.com</email>
  </committer>
</commit>
