security: fix var shadowing in CreateOrUpdateUser

release-2.1
Yicheng Qin 2015-03-16 14:59:05 -07:00
parent b65a7ed18b
commit 8335a5407b
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ func (s *Store) GetUser(name string) (User, error) {
}
func (s *Store) CreateOrUpdateUser(user User) (User, error) {
user, err := s.GetUser(user.User)
_, err := s.GetUser(user.User)
if err == nil {
// Remove the update-user roles from updating downstream.
// Roles are granted or revoked, not changed directly.