lib/travis/client/user.rb in travis-1.6.8.travis.453.6 vs lib/travis/client/user.rb in travis-1.6.8.travis.454.6

- old
+ new

@@ -23,10 +23,14 @@ load_attribute(:is_syncing) # dummy to trigger load, as channels might not be included attributes['channels'] ||= ['common'] end def permissions - attributes['permissions'] ||= session.get('/users/permissions') + attributes['permissions'] ||= begin + repos = session.get('/users/permissions') + repos.each_value { |r| r.compact! } + repos + end end def repositories permissions['permissions'] end