Этот коммит содержится в:
=Corey Hulen
2015-07-06 11:20:40 -08:00
родитель 10b625ba17
Коммит e3ab0a4e3d
4 изменённых файлов: 10 добавлений и 8 удалений

Просмотреть файл

@@ -95,7 +95,7 @@ func (us SqlUserStore) Save(user *model.User) StoreChannel {
return storeChannel
}
func (us SqlUserStore) Update(user *model.User, allowRoleActiveUpdate bool) StoreChannel {
func (us SqlUserStore) Update(user *model.User, allowActiveUpdate bool) StoreChannel {
storeChannel := make(StoreChannel)
@@ -125,7 +125,7 @@ func (us SqlUserStore) Update(user *model.User, allowRoleActiveUpdate bool) Stor
user.LastPingAt = oldUser.LastPingAt
user.EmailVerified = oldUser.EmailVerified
if !allowRoleActiveUpdate {
if !allowActiveUpdate {
user.Roles = oldUser.Roles
user.DeleteAt = oldUser.DeleteAt
}