Class: Sufia::ResqueAdmin

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/sufia/templates/config/resque_admin.rb

Class Method Summary collapse

Class Method Details

.matches?(request) ⇒ Boolean

Returns:

  • (Boolean)

3
4
5
6
7
8
# File 'lib/generators/sufia/templates/config/resque_admin.rb', line 3

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