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>
This commit is contained in:
parent
273c0d2aa3
commit
63d9373aa8
3 changed files with 2 additions and 3 deletions
|
@ -101,8 +101,6 @@ module Gitlab
|
|||
key = current_user.keys.find params[:id]
|
||||
key.delete
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue