File tree 2 files changed +1
-2
lines changed 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -830,7 +830,7 @@ func validateUser(u *User) error {
830
830
// updateUserAllowed is used to block updating selected user fields when local user managemement is disabled.
831
831
func updateUserAllowed (u * User ) error {
832
832
// Don't allow changes of selected user fields if local user management is disabled.
833
- if setting .Service .DisableLocalUserManagement && ( u .Type == UserTypeIndividual ) {
833
+ if setting .Service .DisableLocalUserManagement && u .Type == UserTypeIndividual {
834
834
if currUser , err := GetUserByID (u .ID ); err == nil {
835
835
if currUser .Name != u .Name {
836
836
return fmt .Errorf ("cannot change user %s username; local user management disabled" , u .Name )
Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ func isKeywordValid(keyword string) bool {
118
118
119
119
// ActivateEmail serves a POST request for activating/deactivating a user's email
120
120
func ActivateEmail (ctx * context.Context ) {
121
-
122
121
// Don't allow to activate/deactivate emails if local user management is disabled.
123
122
if setting .Service .DisableLocalUserManagement {
124
123
ctx .ServerError ("ActivateEmail" , fmt .Errorf ("cannot activate email; local user management disabled" ))
You can’t perform that action at this time.
0 commit comments