summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-06-16 04:49:07 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-06-16 10:49:07 +0800
commit273f1997ff21493bba38e9108ef668ce2d00f6aa (patch)
tree2269c337ca70a79ebd3837bbeb4c8ce128e44251 /modules/setting/setting.go
parentcde410521ce235d1fccbb576a877b129c2da68d4 (diff)
downloadgitea-273f1997ff21493bba38e9108ef668ce2d00f6aa.tar.gz
gitea-273f1997ff21493bba38e9108ef668ce2d00f6aa.zip
setting: don't require same running user for internal SSH (like win platform) (#7215)
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 5471a0b61d..43a61aa7fa 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -438,7 +438,7 @@ func forcePathSeparator(path string) {
// This check is ignored under Windows since SSH remote login is not the main
// method to login on Windows.
func IsRunUserMatchCurrentUser(runUser string) (string, bool) {
- if IsWindows {
+ if IsWindows || SSH.StartBuiltinServer {
return "", true
}