MTrackWeb/TicketEdit.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 08:29:18 +0000 (16:29 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 08:29:18 +0000 (16:29 +0800)
MTrackWeb/TicketEdit.php

index aa93fa5..a87b067 100644 (file)
@@ -73,9 +73,7 @@ class MTrackWeb_TicketEdit extends MTrackWeb
         
         
         if ($this->id &&  (
-                !$this->hasPerm('MTrack.Issue','S') || // general permission to view
-                !$this->issue->hasPerm($this->authUser,'S') // specific permission on this bug.
-                
+                !$this->hasPerm('MTrack.Issue','E')
             )) {
             return HTML_FlexyFramework::run('Noperm');
         }
@@ -85,6 +83,7 @@ class MTrackWeb_TicketEdit extends MTrackWeb
         
         
         
+        
         // new is always editable..????
         $this->editable = $this->id ?
             $this->ticket->hasPerm($this->authUser,'E')  : true;