diff options
author | Peter Smit <peter@smitmail.eu> | 2015-02-09 13:36:33 +0200 |
---|---|---|
committer | Peter Smit <peter@smitmail.eu> | 2015-02-09 13:36:33 +0200 |
commit | 0d158e569b0c19614b5e946849e8b7a8e4a75015 (patch) | |
tree | 7702d6fbf2d26b789520f7ef9db11946797e1942 /routers/user | |
parent | 4e79adf6b5bf7ec7bc3b2b47469baafd1cb0b774 (diff) | |
download | gitea-0d158e569b0c19614b5e946849e8b7a8e4a75015.tar.gz gitea-0d158e569b0c19614b5e946849e8b7a8e4a75015.zip |
Change constants to UPPERCASE_WITH_UNDERSCORE style
Diffstat (limited to 'routers/user')
-rw-r--r-- | routers/user/home.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/user/home.go b/routers/user/home.go index 82325cb747..ce82ae772c 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -103,7 +103,7 @@ func Dashboard(ctx *middleware.Context) { feeds := make([]*models.Action, 0, len(actions)) for _, act := range actions { if act.IsPrivate { - if has, _ := models.HasAccess(ctx.User, &models.Repository{Id: act.RepoId, IsPrivate: true}, models.ReadAccess); !has { + if has, _ := models.HasAccess(ctx.User, &models.Repository{Id: act.RepoId, IsPrivate: true}, models.ACCESS_MODE_READ); !has { continue } } @@ -211,7 +211,7 @@ func Profile(ctx *middleware.Context) { continue } if has, _ := models.HasAccess(ctx.User, &models.Repository{Id: act.RepoId, IsPrivate: true}, - models.ReadAccess); !has { + models.ACCESS_MODE_READ); !has { continue } } |