summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/import.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/import.go b/api/import.go
index 8681e74c8..6696aef14 100644
--- a/api/import.go
+++ b/api/import.go
@@ -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