uploads: remove batch upload page.

* Make /uploads/batch redirect to /uploads/new.
* Remove /uploads/image_proxy.
This commit is contained in:
evazion
2022-02-21 00:03:43 -06:00
parent 3da9c1574f
commit 68ba447494
13 changed files with 4 additions and 166 deletions

View File

@@ -9,14 +9,6 @@ class UploadPolicy < ApplicationPolicy
user.is_admin? || record.uploader_id == user.id
end
def batch?
unbanned?
end
def image_proxy?
unbanned?
end
def permitted_attributes
[:source, :referer_url, files: {}]
end