Sha256: 7528c98c93c15991a002b32bbafcbefb9d540054289721e19087ad8780d8d489

Contents?: true

Size: 291 Bytes

Versions: 6

Compression:

Stored size: 291 Bytes

Contents

module Sufia
  class ResqueAdmin
    def self.matches?(request)
      current_user = request.env['warden'].user
      return false if current_user.blank?
      # TODO: code a group here that makes sense
      # current_user.groups.include? 'umg/up.dlt.scholarsphere-admin'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sufia-models-6.7.0 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.6.1 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.6.0 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.5.0 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.4.0 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.3.0 lib/generators/sufia/models/templates/config/resque_admin.rb