[ 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 "afficherOngletExtranaute". 5 // 6 7 if (defined("_AUTHORIZATION_AFFICHER_ONGLET_EXTRANAUTE_COMMON")) return; 8 define("_AUTHORIZATION_AFFICHER_ONGLET_EXTRANAUTE_COMMON", "1"); 9 10 require_once dirname(__FILE__)."/../Action.php"; 11 require_once (dirname(__FILE__)."/../../bd/inc_profil_factory.php"); 12 13 /** 14 * afficherOngletExtranaute is an implementation for Common of "afficherOngletExtranaute" Action. 15 * @package authorization/common 16 * @author Guillaume Grason <guillaume.grason@diplomatie.gouv.fr> 17 * @access public 18 */ 19 class afficherOngletExtranaute_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 31 $profilMetier = &recuperer_instance_profil(); 32 $monProfil = $profilMetier->getProfilForIntitule('item_administrateur'); 33 if(PEAR::isError($monProfil)) { 34 die($monProfil->getMessage()); 35 } 36 return ($this->_user->getProfil() >= $monProfil->getPoids()); 37 38 } 39 40 41 // }}} 42 43 44 } 45 46 ?>
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 |