We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83d188f commit e29ab54Copy full SHA for e29ab54
services/user/user.go
@@ -31,12 +31,13 @@ import (
31
// RenameUser renames a user
32
func RenameUser(ctx context.Context, u *user_model.User, newUserName string) error {
33
// Non-local users are not allowed to change their username.
34
- if !u.IsOrganization() && !u.IsLocal() {
35
- return user_model.ErrUserIsNotLocal{
36
- UID: u.ID,
37
- Name: u.Name,
38
- }
39
+ // BLENDER: allow renaming local users.
+ //if !u.IsOrganization() && !u.IsLocal() {
+ // return user_model.ErrUserIsNotLocal{
+ // UID: u.ID,
+ // Name: u.Name,
+ // }
40
+ //}
41
42
if newUserName == u.Name {
43
return user_model.ErrUsernameNotChanged{
0 commit comments