app/controllers/phcscriptcdnpro/application_controller.rb in phcscriptcdnpro-71.0.0 vs app/controllers/phcscriptcdnpro/application_controller.rb in phcscriptcdnpro-72.0.0

- old
+ new

@@ -14,7 +14,14 @@ current_user ? current_user.username : 'Public user' end private + # Add Admin Only Filter + def phc_accounts_pro_admin_only + unless current_user.admin? + redirect_to main_app.root_path, :alert => "Sorry Access denied." + end + end + end end