Return self-hosted validation

This commit is contained in:
Eugene Burmakin 2025-08-23 16:28:25 +02:00
parent edb9287bcf
commit 432e1d2669

View file

@ -1,10 +1,7 @@
# frozen_string_literal: true
class Settings::BackgroundJobsController < ApplicationController
before_action :authenticate_self_hosted!, unless: lambda {
%w[start_immich_import start_photoprism_import].include?(params[:job_name])
}
before_action :authenticate_self_hosted!
before_action :authenticate_admin!, unless: lambda {
%w[start_immich_import start_photoprism_import].include?(params[:job_name])
}