File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ func forcePathSeparator(path string) {
136136// This check is ignored under Windows since SSH remote login is not the main
137137// method to login on Windows.
138138func IsRunUserMatchCurrentUser (runUser string ) (string , bool ) {
139- if IsWindows || SSH .StartBuiltinServer || ignoreCheckRunUser {
139+ if IsWindows || SSH .StartBuiltinServer {
140140 return "" , true
141141 }
142142
@@ -260,7 +260,7 @@ func loadRunModeFrom(rootCfg ConfigProvider) {
260260 IsProd = strings .EqualFold (RunMode , "prod" )
261261 // Does not check run user when the install lock is off.
262262 installLock := rootCfg .Section ("security" ).Key ("INSTALL_LOCK" ).MustBool (false )
263- if installLock {
263+ if installLock && ! ignoreCheckRunUser {
264264 currentUser , match := IsRunUserMatchCurrentUser (RunUser )
265265 if ! match {
266266 log .Fatal ("Expect user '%s' but current user is: %s" , RunUser , currentUser )
You can’t perform that action at this time.
0 commit comments