| Line 17... |
Line 17... |
| 17 |
// | |
|
17 |
// | |
|
| 18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser 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: bazar.class.php,v 1.1 2006-02-07 11:08:06 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.class.php,v 1.2 2006-02-09 11:06:12 alexandre_tb Exp $
|
| 23 |
/**
|
23 |
/**
|
| 24 |
*
|
24 |
*
|
| 25 |
*@package bazar
|
25 |
*@package bazar
|
| 26 |
//Auteur original :
|
26 |
//Auteur original :
|
| 27 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
27 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
| 28 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
28 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
| 29 |
*@copyright Tela-Botanica 2000-2004
|
29 |
*@copyright Tela-Botanica 2000-2004
|
| 30 |
*@version $Revision: 1.1 $
|
30 |
*@version $Revision: 1.2 $
|
| 31 |
// +------------------------------------------------------------------------------------------------------+
|
31 |
// +------------------------------------------------------------------------------------------------------+
|
| 32 |
*/
|
32 |
*/
|
| Line 33... |
Line 33... |
| 33 |
|
33 |
|
| 34 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 96... |
Line 96... |
| 96 |
|
96 |
|
| 97 |
function isAdmin($id_nature) {
|
97 |
function isAdmin($id_nature) {
|
| 98 |
// on court-circuite si l'utilisateur n'est pas loggué
|
98 |
// on court-circuite si l'utilisateur n'est pas loggué
|
| Line 99... |
Line 99... |
| 99 |
if (!$this->_auth->getAuth()) return false ;
|
99 |
if (!$this->_auth->getAuth()) return false ;
|
| 100 |
|
100 |
|
| Line 101... |
Line 101... |
| 101 |
return $this->_requeteDroit ($id_nature, 1) ;
|
101 |
return $this->_requeteDroit ($id_nature, 2) ;
|
| 102 |
}
|
102 |
}
|
| 103 |
|
103 |
|
| Line 104... |
Line 104... |
| 104 |
/** isRedacteur() - Renvoie true si l'utilisateur est rédacteur du type de fiche spécifié
|
104 |
/** isRedacteur() - Renvoie true si l'utilisateur est rédacteur du type de fiche spécifié
|
| 105 |
*
|
105 |
*
|
| 106 |
*/
|
106 |
*/
|
| Line 107... |
Line 107... |
| 107 |
|
107 |
|
| 108 |
function isRedacteur($id_nature) {
|
108 |
function isRedacteur($id_nature) {
|
| 109 |
return $this->_requeteDroit ($id_nature, 2) ;
|
109 |
return $this->_requeteDroit ($id_nature, 1) ;
|
| Line 130... |
Line 130... |
| 130 |
}
|
130 |
}
|
| Line 131... |
Line 131... |
| 131 |
|
131 |
|
| 132 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
132 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 133 |
*
|
133 |
*
|
| - |
|
134 |
* $Log: not supported by cvs2svn $
|
| - |
|
135 |
* Revision 1.1 2006/02/07 11:08:06 alexandre_tb
|
| - |
|
136 |
* version initiale
|
| 134 |
* $Log: not supported by cvs2svn $
|
137 |
*
|
| 135 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
138 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
| 136 |
*/
|
139 |
*/
|