public function has_access_to_module($module_name)
    {
        switch ($module_name) {
            case 'admin':
                return (
                    ($this->has_right(self::BAS_MODIFY_STRUCT) ||
                    $this->has_right(self::COLL_MODIFY_STRUCT) ||
                    $this->has_right(self::BAS_MANAGE) ||
                    $this->has_right(self::COLL_MANAGE) ||
                    $this->has_right(self::CANADMIN) ||
                    $this->is_admin()) );
                break;
            case 'thesaurus':
                return ($this->has_right(self::BAS_MODIF_TH) === true );
                break;
            case 'upload':
                return ($this->has_right(self::CANADDRECORD) === true);
                break;
            case 'report':
                return ($this->has_right(self::CANREPORT) === true);
                break;
            default:
                break;
        }

        return true;
    }
public function has_access_to_module($module_name)
    {
        switch ($module_name) {
            case 'admin':
                return (
                    ($this->has_right(self::BAS_MODIFY_STRUCT) ||
                    $this->has_right(self::COLL_MODIFY_STRUCT) ||
                    $this->has_right(self::BAS_MANAGE) ||
                    $this->has_right(self::COLL_MANAGE) ||
                    $this->has_right(self::CANADMIN) ||
                    $this->is_admin()) );
                break;
            case 'thesaurus':
                return ($this->has_right(self::BAS_MODIF_TH) === true );
                break;
            case 'upload':
                return ($this->has_right(self::CANADDRECORD) === true);
                break;
            case 'report':
                return ($this->has_right(self::CANREPORT) === true);
                break;
            default:
                break;
        }

        return true;
    }
public function has_access_to_module ( $ module_name ) { switch ( $ module_name ) { case 'admin' : return ( ( $ this -> has_right ( self :: BAS_MODIFY_STRUCT ) || $ this -> has_right ( self :: COLL_MODIFY_STRUCT ) || $ this -> has_right ( self :: BAS_MANAGE ) || $ this -> has_right ( self :: COLL_MANAGE ) || $ this -> has_right ( self :: CANADMIN ) || $ this -> is_admin ( ) ) ) ; break ; case 'thesaurus' : return ( $ this -> has_right ( self :: BAS_MODIF_TH ) === true ) ; break ; case 'upload' : return ( $ this -> has_right ( self :: CANADDRECORD ) === true ) ; break ; case 'report' : return ( $ this -> has_right ( self :: CANREPORT ) === true ) ; break ; default : break ; } return true ; }
Return whether or not the acces to the specified module is OK

@param  String  $module_name
@return boolean
Return whether or not the acces to the specified module is OK