app/controllers/phcmemberspro/member/addresses_controller.rb in phcmemberspro-35.0.0 vs app/controllers/phcmemberspro/member/addresses_controller.rb in phcmemberspro-36.0.0

- old
+ new

@@ -4,17 +4,16 @@ class Member::AddressesController < ApplicationController # Security & Action Filters before_action :authenticate_user! before_action :set_paper_trail_whodunnit - before_action :get_member_profile_info before_action :set_member_address, only: [:show, :edit, :update, :destroy] # INDEX - Directory Listings def index profile = Member::Profile.find(params[:profile_id]) - @member_addresses = profile.addresses.where(oganization_id: authrocket_membership_info.org_id) + @member_addresses = profile.addresses.where(org_id: current_user.org_id) end # LISTINGS DETAILS - Directory Listings def show profile = Member::Profile.find(params[:profile_id]) @@ -71,10 +70,10 @@ @member_address = Member::Address.find(params[:id]) end # Whitelist def member_address_params - params.require(:member_address).permit(:mcaddressl1, :mcaddressl2, :mccity, :mcprovince, :mccountry, :mcpostalcode, :mctype, :user_name, :profile_id, :slug, :user_id, :user_name, :membership_id, :oganization_id) + params.require(:member_address).permit(:mcaddressl1, :mcaddressl2, :mccity, :mcprovince, :mccountry, :mcpostalcode, :mctype, :user_name, :profile_id, :slug, :user_id, :org_id) end end end