예제 #1
0
 function can_view_some_paper_option(PaperOption $opt)
 {
     if ($opt->has_document() && !$this->can_view_some_pdf() || $opt->final && !$this->can_view_some_decision()) {
         return false;
     }
     $oview = $opt->visibility;
     return $this->is_author() || $oview == "admin" && $this->is_manager() || (!$oview || $oview == "rev") && $this->is_reviewer() || $oview == "nonblind" && $this->can_view_some_authors();
 }