From 6f0a41b8b28ba33382ab8d655c0d015324be7647 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 3 Nov 2015 18:40:52 -0500 Subject: #1511 Allow local import only for admin users --- routers/admin/users.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers/admin/users.go') diff --git a/routers/admin/users.go b/routers/admin/users.go index ac0f538171..d5358553ce 100644 --- a/routers/admin/users.go +++ b/routers/admin/users.go @@ -213,6 +213,7 @@ func EditUserPost(ctx *middleware.Context, form auth.AdminEditUserForm) { u.IsActive = form.Active u.IsAdmin = form.Admin u.AllowGitHook = form.AllowGitHook + u.AllowImportLocal = form.AllowImportLocal if err := models.UpdateUser(u); err != nil { if models.IsErrEmailAlreadyUsed(err) { -- cgit v1.2.3