blob: 62ba2d15c8ab14598cab4560f9282958f5062c2f [file] [log] [blame]
#
# Update LDAP SpamAssassin score attribute for a committer
#
person = ASF::Person.find(@userid)
# report the previous value in the response
_previous sascore: person.attrs['asf-sascore']
if @sascore and not @dryrun
# update LDAP
_ldap.update do
person.modify 'asf-sascore', @sascore
end
end
# return updated committer info
_committer Committer.serialize(@userid, env)