Repository model should know whether or not it can accept uploaded content
Issue #13453 needed us to remove the ability for docker content to be uploaded into a repository.
It was addressed with this pull-request.
It would probably be better to encapsulate the logic around whether a repository accepts content uploads.
Something along the lines of:
@repository.accepts_content_upload? # => true or false