summaryrefslogtreecommitdiff
path: root/lib/api/users.rb
diff options
context:
space:
mode:
authorCyril <jv.cyril@gmail.com>2012-12-12 17:53:43 +0100
committerCyril <jv.cyril@gmail.com>2012-12-12 17:53:43 +0100
commit63d9373aa8722b69e7263f39af8e5194048b8b0d (patch)
treee87653e6e5850ebcb301922ab1050e5d0c59992f /lib/api/users.rb
parent273c0d2aa3238aee213efab07f52b78eab1af64f (diff)
downloadgitlab-ce-63d9373aa8722b69e7263f39af8e5194048b8b0d.tar.gz
Validates presence of User#name
The 2 reasons are : - creation of user fail if name is empty : in after_save, it tries to create a namespace with namespace.name = user.name and namespece validates presence Namespace#name - in the web app links to team members are broken with empty User#name because they are of the form <a href'...'> user.name </a>
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r--lib/api/users.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb
index cad99fd9f7b..140c20f6bd2 100644
--- a/lib/api/users.rb
+++ b/lib/api/users.rb
@@ -101,8 +101,6 @@ module Gitlab
key = current_user.keys.find params[:id]
key.delete
end
-
-
end
end
end