Skip to content

Commit

Permalink
added rescue for email check
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdonthemic committed Aug 23, 2012
1 parent d5643e2 commit 656fc2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ def require_login

def appirio_user?
if logged_in?
current_user.email.include?('@appirio.com') ? true : false
begin
current_user.email1.include?('@appirio.com') ? true : false
rescue Exception => exc
logger.error "[ApplicationController]==== error determining if appirio user. current_user is #{current_user.inspect}. Error is #{exc.message}"
return false
end
else
false
end
Expand Down
Binary file modified db/development.sqlite3
Binary file not shown.

0 comments on commit 656fc2d

Please sign in to comment.