From 43a12023f60bafa14d34d336879864cea5bf9b01 Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Fri, 10 Mar 2017 18:06:06 -0600 Subject: [PATCH] Update user's roles validation --- server/users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/users.go b/server/users.go index 13d4aa0e8b..cacf5da01b 100644 --- a/server/users.go +++ b/server/users.go @@ -245,7 +245,7 @@ type usersResponse struct { } func (r *userRequest) ValidUpdate() error { - if r.Password == "" && len(r.Permissions) == 0 { + if r.Password == "" && len(r.Permissions) == 0 && len(r.Roles) == 0 { return fmt.Errorf("No fields to update") } return validPermissions(&r.Permissions)