MTrackWeb/Ticket.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 11:39:53 +0000 (19:39 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 11:39:53 +0000 (19:39 +0800)
MTrackWeb/Ticket.php

index e97a267..5678d5c 100644 (file)
@@ -69,8 +69,7 @@ class MTrackWeb_Ticket extends MTrackWeb
         }
         
         // new is always editable..????
-        $this->editable = $this->id ?
-            $this->ticket->hasPerm($this->authUser,'E')  : true;
+        $this->editable = !$this->hasPerm('MTrack.Issue','E') 
          
         $this->issue->milestoneURL = $this->baseURL.'/Milestone'; // fix me later..