class CFoundry::V2::Organization

Public Instance Methods

delete_user_from_all_roles(user) click to toggle source
# File lib/cfoundry/v2/organization.rb, line 31
def delete_user_from_all_roles(user)
  remove_user(user)
  remove_manager(user)
  remove_billing_manager(user)
  remove_auditor(user)

  spaces.each do |space|
    space.remove_developer(user)
    space.remove_auditor(user)
    space.remove_manager(user)
  end
end