travis-api/lib/travis/api/v3/services/user/sync.rb
Renée Hendricksen b94d9c8637 use the new method
2016-07-07 00:31:35 -04:00

12 lines
204 B
Ruby

module Travis::API::V3
class Services::User::Sync < Service
def run!
user = check_login_and_find(:user)
access_control.permissions(user).sync!
query.sync(user)
end
end
end