mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
PLT-4955 Fixes DM initiation by Slack Import users. (#4933)
Fixes #4707
This commit is contained in:
parent
53509174b1
commit
547524e5ad
1 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,8 @@ func ImportPost(post *model.Post) {
|
|||
func ImportUser(team *model.Team, user *model.User) *model.User {
|
||||
user.MakeNonNil()
|
||||
|
||||
user.Roles = model.ROLE_SYSTEM_USER.Id
|
||||
|
||||
if result := <-Srv.Store.User().Save(user); result.Err != nil {
|
||||
l4g.Error(utils.T("api.import.import_user.saving.error"), result.Err)
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue