This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix scoping

  • Loading branch information...
Jesse Stuart
Jesse Stuart committed Oct 2, 2012
1 parent 0f491ec commit 2745dc3cc5a993e4e9f7c4bc62a34b2b8c099c9c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tentd/api/authentication_lookup.rb
@@ -11,7 +11,7 @@ def action(env)
when 'a'
TentD::Model::App.first(:mac_key_id => mac_key_id)
when 'u'
TentD::Model::AppAuthorization.first(:mac_key_id => mac_key_id)
TentD::Model::User.current.apps.authorizations.first(:mac_key_id => mac_key_id)
end
env.potential_auth = Model::Following.first(:mac_key_id => mac_key_id) unless env.potential_auth
if env.potential_auth

0 comments on commit 2745dc3

Please sign in to comment.