app/controllers/phcscriptcdnpro/script/licences_controller.rb in phcscriptcdnpro-3.3.3 vs app/controllers/phcscriptcdnpro/script/licences_controller.rb in phcscriptcdnpro-3.3.4
- old
+ new
@@ -1,10 +1,11 @@
require_dependency "phcscriptcdnpro/application_controller"
module Phcscriptcdnpro
class Script::LicencesController < ApplicationController
- #Secrity & Filters
+ # Filters & Security
+ before_action :require_user
before_action :set_script_licence, only: [:show, :edit, :update, :destroy]
# INDEX - Script Licences
def index
@script_licences = Script::Licence.all