app/controllers/iugu/account_controller.rb in iugusdk-1.0.9 vs app/controllers/iugu/account_controller.rb in iugusdk-1.0.10

- old
+ new

@@ -1,8 +1,8 @@ class Iugu::AccountController < Iugu::AccountSettingsController - before_filter(:only => [:destroy, :cancel_destruction, :update]) { |c| c.must_be :owner, :id } - before_filter(:only => [:payment_history, :generate_new_token]) { |c| c.must_be :owner, :account_id } + before_filter(:only => [:destroy, :cancel_destruction, :update]) { |c| c.must_be [:owner, :administrator], :id } + before_filter(:only => [:payment_history, :generate_new_token]) { |c| c.must_be [:owner, :administrator], :account_id } def index @accounts = current_user.accounts.order(:created_at) render 'iugu/settings/accounts' end