Sha256: d6bb26a1802f584419586ace5a57694af95db47c6f96db0970cea54a8363a413

Contents?: true

Size: 289 Bytes

Versions: 94

Compression:

Stored size: 289 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

94 entries across 94 versions & 3 rubygems

Version Path
curate-0.5.4 spec/internal/config/initializers/resque_admin.rb
curate-0.5.2 spec/internal/config/initializers/resque_admin.rb
sufia-3.4.0 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-3.4.0 lib/generators/sufia/models/templates/config/resque_admin.rb
curate-0.5.1 spec/internal/config/initializers/resque_admin.rb
sufia-3.4.0.rc4 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-3.4.0.rc4 lib/generators/sufia/models/templates/config/resque_admin.rb
curate-0.5.0 spec/internal/config/initializers/resque_admin.rb
sufia-3.4.0.rc3 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-3.4.0.rc3 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-3.3.1 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-3.3.1 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-3.4.0.rc2 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-3.4.0.rc2 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-3.4.0.rc1 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-3.4.0.rc1 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-3.3.0 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-3.3.0 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-3.2.1 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-3.2.1 lib/generators/sufia/models/templates/config/resque_admin.rb