app/controllers/phcscriptcdnpro/script/licences_controller.rb in phcscriptcdnpro-71.0.0 vs app/controllers/phcscriptcdnpro/script/licences_controller.rb in phcscriptcdnpro-72.0.0
- old
+ new
@@ -1,11 +1,12 @@
require_dependency "phcscriptcdnpro/application_controller"
module Phcscriptcdnpro
class Script::LicencesController < 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_licence, only: [:show, :edit, :update, :destroy]
# INDEX - Script Licences
def index