fix error

This commit is contained in:
rulingcom 2023-07-01 11:08:18 +08:00
parent 8bbe9a0fa5
commit c841f48477
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ class Admin::BoxController < OrbitAdminController
SocketFile = "#{Rails.root}/tmp/box.sock"
Binary = File.expand_path("../../../../bin/box", __FILE__)
CSSFile = File.expand_path("../../../../white-on-black.css", __FILE__)
skip_before_filter :verify_authenticity_token
skip_before_action :verify_authenticity_token
def index
is_not_open = `fuser #{SocketFile}`.gsub(/\n/, '').empty?