Mirror bug fix

This commit is contained in:
Unknown committed 2014-04-11 23:52:08 -04:00
1 parent 3df8b2bef0
commit d305448fa8
4 files changed
+12 -6

No files matched your search

+2 -2
View File
@@ -302,9 +302,9 @@ func NewConfigContext() {
InstallLock = Cfg.MustBool("security", "INSTALL_LOCK", false)
RunUser = Cfg.MustValue("", "RUN_USER")
curUser := os.Getenv("USERNAME")
curUser := os.Getenv("USER")
if len(curUser) == 0 {
curUser = os.Getenv("USER")
curUser = os.Getenv("USERNAME")
}
// Does not check run user when the install lock is off.
if InstallLock && RunUser != curUser {