app/controllers/phcscriptcdnpro/script/extensions_controller.rb in phcscriptcdnpro-72.2.0 vs app/controllers/phcscriptcdnpro/script/extensions_controller.rb in phcscriptcdnpro-73.0.0
- old
+ new
@@ -2,13 +2,12 @@
module Phcscriptcdnpro
class Script::ExtensionsController < ApplicationController
# Include Core Helpers, Security & Action Filters
- include Phccorehelpers::ApplicationHelper
+ include Phccorehelpers::PhcpluginsproHelper
before_action :authenticate_user!
- before_action :phc_accounts_pro_admin_only
before_action :set_paper_trail_whodunnit
before_action :set_script_extension, only: [:show, :edit, :update, :destroy]
# INDEX - Script Extension
def index
@@ -68,10 +67,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, :org_id)
+ params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :slug, :user_id, :org_id, :listing_id)
end
end
end