Browse Source

Unlisted authors still receive a mail when changing status of an extension. They are also listed on the editor page...

Quentin Raynaud 15 years ago
parent
commit
bb0cf919ba
1 changed files with 5 additions and 1 deletions
  1. 5 1
      site/app/controllers/editors_controller.php

+ 5 - 1
site/app/controllers/editors_controller.php

@@ -370,7 +370,11 @@ class EditorsController extends AppController
             $this->flash(_('error_addon_notfound'), '/editors/queue');
             return;
         }
-        
+	$tmp = $this->Addon->getAuthors($version['Version']['addon_id'], false);
+	$addon['User'] = array();
+	foreach ($tmp as $tmp_infos)
+		$addon['User'][] = $tmp_infos['User'];
+
         //Make sure user is not an author (or is an admin)
         $session = $this->Session->read('User');
         if (!$this->SimpleAcl->actionAllowed('*', '*', $session)) {