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
sufia-models-6.2.0 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.1.0 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-5.0.0 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-5.0.0 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.0.0 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-6.0.0 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-6.0.0.rc4 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.0.0.rc4 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-6.0.0.rc3 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.0.0.rc3 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-5.0.0.rc1 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-5.0.0.rc1 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-6.0.0.rc2 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.0.0.rc2 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-6.0.0.rc1 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.0.0.rc1 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-4.3.1 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-4.3.1 lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-6.0.0.beta1 sufia-models/lib/generators/sufia/models/templates/config/resque_admin.rb
sufia-models-6.0.0.beta1 lib/generators/sufia/models/templates/config/resque_admin.rb