summaryrefslogtreecommitdiff
path: root/billing/app/controllers/billing_base_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'billing/app/controllers/billing_base_controller.rb')
-rw-r--r--billing/app/controllers/billing_base_controller.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/billing/app/controllers/billing_base_controller.rb b/billing/app/controllers/billing_base_controller.rb
index dc15194..67dff72 100644
--- a/billing/app/controllers/billing_base_controller.rb
+++ b/billing/app/controllers/billing_base_controller.rb
@@ -4,8 +4,13 @@ class BillingBaseController < ApplicationController
helper 'billing'
# required for navigation to work.
+ #TODO doesn't work for admins
def assign_user
- @user = current_user
+ if params[:id]
+ @user = User.find_by_param(params[:id])
+ else
+ @user = current_user #TODO not always correct for admins viewing another user!
+ end
end
end