Subversion Repositories Applications.papyrus

Rev

Rev 1631 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1631 Rev 1634
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU General Public                                            |
18
// | You should have received a copy of the GNU General Public                                            |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: documents.php,v 1.9 2007-10-02 08:58:23 alexandre_tb Exp $
22
// CVS : $Id: documents.php,v 1.10 2007-10-02 09:24:53 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Action documents
26
* Action documents
27
*
27
*
Line 29... Line 29...
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aucun
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2005
33
*@copyright     Tela-Botanica 2000-2005
34
*@version       $Revision: 1.9 $
34
*@version       $Revision: 1.10 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 72... Line 72...
72
 
72
 
73
if ($this->_auth->getAuth()) {
73
if ($this->_auth->getAuth()) {
74
    include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
74
    include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
75
    $participant = new participe($this->_db) ;
75
    $participant = new participe($this->_db) ;
-
 
76
    $id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
-
 
77
    $isParticipant = $participant->isContributeur($id_u, $this->_id_projet, $this->_db);
-
 
78
    if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR;
76
    $id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
79
    
77
    $isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ;
80
    $isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ;
78
    if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ;
81
    if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ;
79
    $isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ;
82
    $isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ;
80
    if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ;
-
 
81
    if ($isAdm) $isCoord = true ;
-
 
82
    $isParticipant = $participant->isContributeur($id_u, $this->_id_projet, $this->_db);
-
 
83
    if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR;
83
    if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ;
-
 
84
 
84
    
85
 
85
    $statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ;
86
    $statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ;
Line 86... Line 87...
86
    // si participant, on ajoute le champs visibilite
87
    // si participant, on ajoute le champs visibilite
87
    
88