Add whitelist mode (#11291)
This commit is contained in:
1 parent
85b7b565de
commit
24552b5160
44 files changed
+302
-53
No files matched your search
@@ -5,6 +5,8 @@ class MediaProxyController < ApplicationController
|
||||
|
||||
skip_before_action :store_current_location
|
||||
|
||||
before_action :authenticate_user!, if: :whitelist_mode?
|
||||
|
||||
def show
|
||||
RedisLock.acquire(lock_options) do |lock|
|
||||
if lock.acquired?
|
||||
|
||||
Reference in new issue
Block a user