app/controllers/phcscriptcdnpro/script/extensions_controller.rb in phcscriptcdnpro-29.0.0 vs app/controllers/phcscriptcdnpro/script/extensions_controller.rb in phcscriptcdnpro-30.0.0
- old
+ new
@@ -8,11 +8,11 @@
before_action :set_paper_trail_whodunnit
before_action :set_script_extension, only: [:show, :edit, :update, :destroy]
# INDEX - Script Extension
def index
- @script_extensions = Script::Extension.where(oganization_id: authrocket_membership_info.org_id)
+ @script_extensions = Script::Extension.where(org_id: current_user.org_id)
end
# DETAILS - Script Extension
def show
@script_extensions = Script::Extension.friendly.find(params[:id])
@@ -66,10 +66,10 @@
@script_extension = Script::Extension.friendly.find(params[:id])
end
# Whitelists
def script_extension_params
- params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :slug, :user_id, :user_name, :membership_id, :oganization_id)
+ params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :slug, :user_id, :org_id)
end
end
end