19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: documents.php,v 1.9 2007-10-02 08:58:23 alexandre_tb Exp $ |
// CVS : $Id: documents.php,v 1.10 2007-10-02 09:24:53 alexandre_tb Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.9 $ |
*@version $Revision: 1.10 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
74,14 → 74,15 |
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ; |
$participant = new participe($this->_db) ; |
$id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ; |
$isParticipant = $participant->isContributeur($id_u, $this->_id_projet, $this->_db); |
if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR; |
|
$isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ; |
if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ; |
$isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ; |
if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ; |
if ($isAdm) $isCoord = true ; |
$isParticipant = $participant->isContributeur($id_u, $this->_id_projet, $this->_db); |
if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR; |
|
|
|
$statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ; |
// si participant, on ajoute le champs visibilite |
|