Permalink
Browse files

Merge pull request #3147 from sharetribe/bugfix-airbrake-person-model

Fixed: Airbrake reported middleware bug
  • Loading branch information...
valdis committed Nov 13, 2017
2 parents 4e4e938 + f882d1d commit 4a5b52d77f0e65712ce9f69bab51378565a89307
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/services/session_context_store.rb
@@ -31,7 +31,7 @@ def set_from_model(community: nil, person: nil)
role =
if person.nil?
nil
elsif person.has_admin_rights?(community)
elsif community && person.has_admin_rights?(community)
:admin
else
:user

0 comments on commit 4a5b52d

Please sign in to comment.