diff options
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 4b842339..f01f8b2a 100644 --- a/models/user.go +++ b/models/user.go @@ -176,7 +176,7 @@ func (u *User) CanEditGitHook() bool { // CanImportLocal returns true if user can migrate repository by local path. func (u *User) CanImportLocal() bool { - return u.IsAdmin || u.AllowImportLocal + return setting.Repository.EnableLocalPathMigration && (u.IsAdmin || u.AllowImportLocal) } // DashboardLink returns the user dashboard page link. |