mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-11 06:20:42 +00:00
Add whitelist mode (#11291)
This commit is contained in:
@@ -5,6 +5,7 @@ class MediaController < ApplicationController
|
||||
|
||||
skip_before_action :store_current_location
|
||||
|
||||
before_action :authenticate_user!, if: :whitelist_mode?
|
||||
before_action :set_media_attachment
|
||||
before_action :verify_permitted_status!
|
||||
before_action :check_playable, only: :player
|
||||
|
||||
Reference in New Issue
Block a user