single repository page ui, add spec handler to get repo
This commit is contained in:
parent
f65d8f9144
commit
37fae304d3
8 changed files with 39 additions and 30 deletions
6
gogs.go
6
gogs.go
|
@ -20,19 +20,19 @@ import (
|
|||
// Test that go1.1 tag above is included in builds. main.go refers to this definition.
|
||||
const go11tag = true
|
||||
|
||||
const APP_VER = "0.0.5.0311"
|
||||
const APP_VER = "0.0.5.0313"
|
||||
|
||||
func init() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
}
|
||||
|
||||
func checkRunUser() bool {
|
||||
user, err := user.Current()
|
||||
u, err := user.Current()
|
||||
if err != nil {
|
||||
// TODO: log
|
||||
return false
|
||||
}
|
||||
return user.Username == base.Cfg.MustValue("", "RUN_USER")
|
||||
return u.Username == base.Cfg.MustValue("", "RUN_USER")
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue