app/controllers/phcscriptcdnpro/script/extensions_controller.rb in phcscriptcdnpro-71.0.0 vs app/controllers/phcscriptcdnpro/script/extensions_controller.rb in phcscriptcdnpro-72.0.0
- old
+ new
@@ -1,11 +1,12 @@
require_dependency "phcscriptcdnpro/application_controller"
module Phcscriptcdnpro
class Script::ExtensionsController < ApplicationController
- # Security & Action Filters
- before_action :authenticate_admin!
+ # Security, Layouts & Action Filters
+ 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