Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

bugfix: need to add a before filter to set the session[:access_rights]

  • Loading branch information...
commit 009e1cee84714fd520af6675382ab736fcb986a6 1 parent 6ecf30d
Jason Dew authored February 28, 2011

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  lib/role_authorization/exts/controller.rb
2  lib/role_authorization/exts/controller.rb
@@ -27,6 +27,8 @@ def allow(&block)
27 27
         def add_role_authorization_filter
28 28
           callbacks = _process_action_callbacks
29 29
           chain = callbacks.select {|cl| cl.klass.to_s.include?(name)}.collect(&:filter).select {|c| c.is_a?(Symbol)}
  30
+
  31
+          before_filter {|controller| add_role_authorization_session_values controller.current_user }
30 32
           before_filter :check_request_authorization unless chain.include?(:check_request_authorization)
31 33
         end
32 34
 

0 notes on commit 009e1ce

Please sign in to comment.
Something went wrong with that request. Please try again.