Exemplo n.º 1
0
 /**
  * HasEditPermission
  */
 function hasEditPermission($task = null)
 {
     //check for ACL permsission and project admin/editor
     $allowed = parent::hasEditPermission($task);
     $user = JFactory::getUser();
     if ($user->id > 0 && !$allowed) {
         // Check if user is the club admin
         $club = $this->getClub();
         if ($user->id == $club->admin) {
             $allowed = true;
         }
     }
     return $allowed;
 }