Merge pull request #136 from mattermost/code-review

team code review
Этот коммит содержится в:
Joram Wilander
2015-07-08 09:07:47 -04:00
родитель 450821bcba e3ab0a4e3d
Коммит 3012a7f532
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
}