module Attachments
  class HostedImagePolicy < ApplicationPolicy
    def index?
      allowed?
    end

    def create?
      allowed?
    end

    def allowed?
      user.permitted? BeefCake::Permission.for(:admin_image_upload)
    end
  end
end
