54 |
function checkAccessibility() { |
function checkAccessibility() { |
55 |
// |
// |
56 |
parent::checkAccessibility(); |
parent::checkAccessibility(); |
57 |
// Si l'utilisateur est un intructeur qui en correspond pas à la |
// Si l'utilisateur est un intructeur qui ne correspond pas à la |
58 |
// division du dossier |
// division du dossier |
59 |
if ($this->f->isUserInstructeur() |
if ($this->f->isUserInstructeur() |
60 |
&& isset($this->f->om_utilisateur["division"]) |
&& isset($this->f->om_utilisateur["division"]) |
61 |
&& $this->f->om_utilisateur["division"] != $this->getDivisionFromDossier()) { |
&& $this->f->om_utilisateur["division"] != $this->getDivisionFromDossier()) { |
62 |
// |
// |
63 |
$this->parameters["actions"]["modifier"] = NULL; |
$this->parameters["actions"]["modifier"] = NULL; |
64 |
|
// |
65 |
|
$this->actions_sup["geolocalisation"] = NULL; |
66 |
|
|
67 |
//Cache le lien du rapport d'instruction, si aucun n'est lié |
//Cache le lien du rapport d'instruction, si aucun n'est lié |
68 |
if ( $this->getRapportInstruction() == '' ){ |
if ( $this->getRapportInstruction() == '' ){ |
83 |
if ( $this->f->isUserInstructeur() && $this->getStatut() == "cloture" ){ |
if ( $this->f->isUserInstructeur() && $this->getStatut() == "cloture" ){ |
84 |
|
|
85 |
$this->parameters["actions"]["modifier"] = NULL; |
$this->parameters["actions"]["modifier"] = NULL; |
86 |
|
// |
87 |
|
$this->actions_sup["geolocalisation"] = NULL; |
88 |
|
|
89 |
//Cache le lien du rapport d'instruction, si aucun n'est lié |
//Cache le lien du rapport d'instruction, si aucun n'est lié |
90 |
if ( $this->getRapportInstruction() == '' ){ |
if ( $this->getRapportInstruction() == '' ){ |