Sha256: 89332d44fe5c21f84f4be407a4d9a1bb1c491581bb9b39bbf23914843485cbd7

Contents?: true

Size: 117 Bytes

Versions: 37

Compression:

Stored size: 117 Bytes

Contents

class RoleMapper
  def self.roles(uid)
    u = User.find_by_login(uid)
    return [] unless u
    u.groups
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
sufia-6.3.0 lib/sufia/role_mapper.rb
sufia-6.2.0 lib/sufia/role_mapper.rb
sufia-6.1.0 lib/sufia/role_mapper.rb
sufia-5.0.0 lib/sufia/role_mapper.rb
sufia-6.0.0 lib/sufia/role_mapper.rb
sufia-6.0.0.rc4 lib/sufia/role_mapper.rb
sufia-6.0.0.rc3 lib/sufia/role_mapper.rb
sufia-5.0.0.rc1 lib/sufia/role_mapper.rb
sufia-6.0.0.rc2 lib/sufia/role_mapper.rb
sufia-6.0.0.rc1 lib/sufia/role_mapper.rb
sufia-4.3.1 lib/sufia/role_mapper.rb
sufia-6.0.0.beta1 lib/sufia/role_mapper.rb
sufia-4.2.0 lib/sufia/role_mapper.rb
sufia-4.1.0 lib/sufia/role_mapper.rb
sufia-4.0.1 lib/sufia/role_mapper.rb
sufia-4.0.0 lib/sufia/role_mapper.rb
sufia-4.0.0.rc2 lib/sufia/role_mapper.rb
sufia-4.0.0.rc1 lib/sufia/role_mapper.rb
sufia-4.0.0.beta4 lib/sufia/role_mapper.rb
sufia-4.0.0.beta3 lib/sufia/role_mapper.rb