mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Return self-hosted validation
This commit is contained in:
parent
edb9287bcf
commit
432e1d2669
1 changed files with 1 additions and 4 deletions
|
|
@ -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])
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue