[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 <?php 2 /******* Fichier Ajouté EXTRANET guillaume.grason@diplomatie.gouv.fr *******/ 3 // 4 // Base class for Action "modifierExtranaute". 5 // 6 7 if (defined("_AUTHORIZATION_MODIFIER_EXTRANAUTE_COMMON")) return; 8 define("_AUTHORIZATION_MODIFIER_EXTRANAUTE_COMMON", "1"); 9 10 require_once dirname(__FILE__)."/../Action.php"; 11 require_once (dirname(__FILE__)."/../../bd/inc_profil_factory.php"); 12 13 /** 14 * modifierExtranaute is an implementation for Common of "modifierExtranaute" Action. 15 * @package authorization/common 16 * @author Guillaume Grason <guillaume.grason@diplomatie.gouv.fr> 17 * @access public 18 */ 19 class modifierExtranaute_common extends Action { 20 21 // {{{ _isAuthorized() 22 23 /** 24 * Get if a user is authorized to access to a command 25 * @access private 26 * @return bool 27 */ 28 29 function _isAuthorized() { 30 $profilMetier = &recuperer_instance_profil(); 31 $monProfil = $profilMetier->getProfilForIntitule('item_administrateur'); 32 if(PEAR::isError($monProfil)) { 33 die($monProfil->getMessage()); 34 } 35 return($this->_user->getProfil() >= $monProfil->getPoids()); 36 } 37 38 39 // }}} 40 41 42 } 43 44 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |