app/controllers/phcscriptcdnpro/script/licences_controller.rb in phcscriptcdnpro-72.2.0 vs app/controllers/phcscriptcdnpro/script/licences_controller.rb in phcscriptcdnpro-73.0.0
- old
+ new
@@ -2,13 +2,12 @@
module Phcscriptcdnpro
class Script::LicencesController < 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_licence, only: [:show, :edit, :update, :destroy]
# INDEX - Script Licences
def index
@@ -68,10 +67,10 @@
@script_licence = Script::Licence.friendly.find(params[:id])
end
# Whitelists
def script_licence_params
- params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :slug, :user_id, :org_id)
+ params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :slug, :user_id, :org_id, :listing_id)
end
end
end