Yes, he is logged in (sure).
To access to the current_user, I added a line on the 
file_based_extension (butI'm not using this extension yet) :

module FileBasedLayout
  module SiteControllerExt
    def self.included(base)
      base.class_eval {
        include InstanceMethods
        alias_method_chain :process_page, :file_based_layout
      }
    end

    module InstanceMethods

      protected

      def process_page_with_file_based_layout(page)
        @page.current_user = current_user
        puts "****************** session : " + session.inspect
        if @page.layout && @page.layout.file_based?
          render :text => process_with_file_based_layout(@page), :layout 
=> @page.layout.layout_file.gsub(/(\.[a-z]+)?\.[a-z]+$/, '')
        else
          process_page_without_file_based_layout(page)
        end
      end
etc.

current_user and session are not empty on my computer, but they are nil 
on the other one... I'm realy lost because we have the same mysql dump 
and project files.

If I can't resolve my problem, there is an other way to access to my 
current user/user_id ?

Thank you !
Vincent
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to