Permalink
Browse files

Allow a site admin to see customers' data

  • Loading branch information...
1 parent 45c6126 commit 449dca928e77d33178e80a2f308f69e4bd041d86 Martin Kleppmann committed Oct 18, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/customer_domains.rb
@@ -21,7 +21,7 @@ def customer_required
end
def logged_in_as_current_customer?
- current_customer && current_user && CustomerUser.linked?(current_customer, current_user)
+ current_customer && current_user && (CustomerUser.linked?(current_customer, current_user) || current_user.is_admin)
end
# before_filter :customer_login_required, checks for current_customer, current_user and a link between the two

0 comments on commit 449dca9

Please sign in to comment.