forked from forgejo/forgejo
Merge utils to modules
This commit is contained in:
parent
a2a59f8ad1
commit
5a05d6633d
14 changed files with 30 additions and 30 deletions
6
gogs.go
6
gogs.go
|
@ -11,7 +11,7 @@ import (
|
|||
"runtime"
|
||||
|
||||
"github.com/codegangsta/cli"
|
||||
"github.com/gogits/gogs/utils"
|
||||
"github.com/gogits/gogs/modules/base"
|
||||
)
|
||||
|
||||
// +build go1.1
|
||||
|
@ -31,12 +31,12 @@ func checkRunUser() bool {
|
|||
// TODO: log
|
||||
return false
|
||||
}
|
||||
return user.Username == utils.Cfg.MustValue("", "RUN_USER")
|
||||
return user.Username == base.Cfg.MustValue("", "RUN_USER")
|
||||
}
|
||||
|
||||
func main() {
|
||||
/*if !checkRunUser() {
|
||||
println("The command should be run as", utils.Cfg.MustValue("", "RUN_USER"))
|
||||
println("The command should be run as", base.Cfg.MustValue("", "RUN_USER"))
|
||||
return
|
||||
}*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue