Branch v2 dry stuff

Why? Because of the new `before_filter :check_repository_enabled`? What if `can?(:anything, attachment)` is called from a view not rendered by the `AttachmentsController`?