whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit 537521d: force getting the name from LDAP
Date Sun, 03 Apr 2016 00:13:23 GMT
Commit 537521dcc175b4772ed11f9d829cfc3ad44e4eb3:
    force getting the name from LDAP


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/roster/views/actions/fullname.json.rb                    | ++ --
------------------------------------------------------------
4 changes: 2 additions, 2 deletions.
------------------------------------------------------------


diff --git a/www/roster/views/actions/fullname.json.rb b/www/roster/views/actions/fullname.json.rb
index 7ef586e..61c950f 100644
--- a/www/roster/views/actions/fullname.json.rb
+++ b/www/roster/views/actions/fullname.json.rb
@@ -4,9 +4,9 @@
 person = ASF::Person.find(@userid)
 
 # update LDAP
-if person.public_name != @publicname
+if person.attrs['cn'] != @publicname
   _ldap.update do
-    _previous person.public_name
+    _previous person.attrs['cn']
 
     if @publicname and not @dryrun
       person.modify 'cn', @publicname

Mime
View raw message