uploads: add /upload_media_assets index page.

This page shows each individual file you've uploaded. This is different
from the regular uploads page because files in multi-file uploads are
not grouped together.
This commit is contained in:
evazion
2022-02-13 16:09:45 -06:00
parent 53a3beee35
commit 229759cc72
7 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
# frozen_string_literal: true
class UploadMediaAssetPolicy < ApplicationPolicy
def show?
user.is_admin? || record.upload.uploader_id == user.id
end
end