Skip to content

Commit

Permalink
feature: no find Client when access_id not given
Browse files Browse the repository at this point in the history
  • Loading branch information
Napolskih committed Jul 28, 2017
1 parent f78489c commit ee55219
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/apress/api/auth_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class AuthService
#
# Returns boolean
def call
return false unless access_id

@client = Apress::Api::Client.find_by_access_id(access_id)
return false unless client

Expand Down

0 comments on commit ee55219

Please sign in to comment.