Method: JunglePath::API::Helpers::AuthLocalUser#set_current_auth
- Defined in:
- lib/jungle_path/api/helpers/auth_local_user.rb
#set_current_auth(auth) ⇒ Object
243 244 245 246 247 |
# File 'lib/jungle_path/api/helpers/auth_local_user.rb', line 243 def set_current_auth auth #@current_auth = ::Authorization::Filter.new current_roles, configatron.application.role_permissions, configatron.application.role_restrictions @current_auth = auth @current_user.auth = @current_auth if @current_user end |