gitcoinco/code_fund_ads

View on GitHub
app/models/concerns/authorizers/imageable.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Authorizers
  module Imageable
    def can_view_imageable?(imageable)
      return true if can_admin_system?
      can_manage_organization?(imageable)
    end

    def can_upload_imageables?
      return true if can_admin_system? || can_advertise?
      false
    end
  end
end