aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/bindata/bindata.go28
-rw-r--r--pkg/context/api.go6
-rw-r--r--pkg/context/repo.go4
3 files changed, 19 insertions, 19 deletions
diff --git a/pkg/bindata/bindata.go b/pkg/bindata/bindata.go
index b64196cb..ad0fb35a 100644
--- a/pkg/bindata/bindata.go
+++ b/pkg/bindata/bindata.go
@@ -3297,7 +3297,7 @@ func confGitignoreUnrealengine() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/gitignore/UnrealEngine", size: 948, mode: os.FileMode(420), modTime: time.Unix(1550387700, 0)}
+ info := bindataFileInfo{name: "conf/gitignore/UnrealEngine", size: 948, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4437,7 +4437,7 @@ func confLocaleLocale_deDeIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_de-DE.ini", size: 70946, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_de-DE.ini", size: 70946, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4577,7 +4577,7 @@ func confLocaleLocale_glEsIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_gl-ES.ini", size: 69688, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_gl-ES.ini", size: 69688, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4597,7 +4597,7 @@ func confLocaleLocale_huHuIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_hu-HU.ini", size: 70953, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_hu-HU.ini", size: 70953, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4617,7 +4617,7 @@ func confLocaleLocale_idIdIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_id-ID.ini", size: 66136, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_id-ID.ini", size: 66136, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4637,7 +4637,7 @@ func confLocaleLocale_itItIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_it-IT.ini", size: 68517, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_it-IT.ini", size: 68517, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4657,7 +4657,7 @@ func confLocaleLocale_jaJpIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_ja-JP.ini", size: 80912, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_ja-JP.ini", size: 80912, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4677,7 +4677,7 @@ func confLocaleLocale_koKrIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_ko-KR.ini", size: 71072, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_ko-KR.ini", size: 71072, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4697,7 +4697,7 @@ func confLocaleLocale_lvLvIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_lv-LV.ini", size: 70985, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_lv-LV.ini", size: 70985, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4777,7 +4777,7 @@ func confLocaleLocale_ptPtIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_pt-PT.ini", size: 70206, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_pt-PT.ini", size: 70206, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4797,7 +4797,7 @@ func confLocaleLocale_ruRuIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_ru-RU.ini", size: 101120, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_ru-RU.ini", size: 101120, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4817,7 +4817,7 @@ func confLocaleLocale_skSkIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_sk-SK.ini", size: 70503, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_sk-SK.ini", size: 70503, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4837,7 +4837,7 @@ func confLocaleLocale_srSpIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_sr-SP.ini", size: 93140, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_sr-SP.ini", size: 93140, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4877,7 +4877,7 @@ func confLocaleLocale_trTrIni() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "conf/locale/locale_tr-TR.ini", size: 69699, mode: os.FileMode(420), modTime: time.Unix(1561638673, 0)}
+ info := bindataFileInfo{name: "conf/locale/locale_tr-TR.ini", size: 69699, mode: os.FileMode(420), modTime: time.Unix(1564372605, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
diff --git a/pkg/context/api.go b/pkg/context/api.go
index a8928fc0..dec7cfba 100644
--- a/pkg/context/api.go
+++ b/pkg/context/api.go
@@ -25,8 +25,8 @@ type APIContext struct {
Org *APIOrganization
}
-// FIXME: move to github.com/gogs/go-gogs-client
-const DOC_URL = "https://github.com/gogs/docs-api"
+// FIXME: move this constant to github.com/gogs/go-gogs-client
+const DocURL = "https://github.com/gogs/docs-api"
// Error responses error message to client with given message.
// If status is 500, also it prints error to log.
@@ -44,7 +44,7 @@ func (c *APIContext) Error(status int, title string, obj interface{}) {
c.JSON(status, map[string]string{
"message": message,
- "url": DOC_URL,
+ "url": DocURL,
})
}
diff --git a/pkg/context/repo.go b/pkg/context/repo.go
index d7c9f0ce..cb2413f8 100644
--- a/pkg/context/repo.go
+++ b/pkg/context/repo.go
@@ -160,9 +160,9 @@ func RepoAssignment(pages ...bool) macaron.Handler {
if c.IsLogged && c.User.IsAdmin {
c.Repo.AccessMode = models.ACCESS_MODE_OWNER
} else {
- mode, err := models.AccessLevel(c.UserID(), repo)
+ mode, err := models.UserAccessMode(c.UserID(), repo)
if err != nil {
- c.ServerError("AccessLevel", err)
+ c.ServerError("UserAccessMode", err)
return
}
c.Repo.AccessMode = mode