Subversion Repositories Applications.papyrus

Rev

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

Rev 940 Rev 1136
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: resume.php,v 1.10 2006-09-15 12:34:59 alexandre_tb Exp $
22
// CVS : $Id: resume.php,v 1.11 2006-12-11 14:50:57 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Action resume
26
* Action resume
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.10 $
34
*@version       $Revision: 1.11 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 69... Line 69...
69
if ($this->_auth->getAuth()) {
69
if ($this->_auth->getAuth()) {
70
	$droits = PROJET_DROIT_AUCUN;
70
	$droits = PROJET_DROIT_AUCUN;
71
    $participant = new participe($this->_db) ;
71
    $participant = new participe($this->_db) ;
72
    $id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
72
    $id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
73
    $isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ;
73
    $isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ;
-
 
74
    $isParticipant = $participant->isContributeur($id_u, $this->_id_projet, $this->_db) ;
-
 
75
    if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR;
74
    if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ;
76
    if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ;
75
    $isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ;
77
    $isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ;
76
    if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ;
78
    if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ;
77
    if ($isAdm) $isCoord = true ;
79
    if ($isAdm) $isCoord = true ;