summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorPeter Smit <peter@smitmail.eu>2015-02-09 13:36:33 +0200
committerPeter Smit <peter@smitmail.eu>2015-02-09 13:36:33 +0200
commit0d158e569b0c19614b5e946849e8b7a8e4a75015 (patch)
tree7702d6fbf2d26b789520f7ef9db11946797e1942 /routers/user
parent4e79adf6b5bf7ec7bc3b2b47469baafd1cb0b774 (diff)
downloadgitea-0d158e569b0c19614b5e946849e8b7a8e4a75015.tar.gz
gitea-0d158e569b0c19614b5e946849e8b7a8e4a75015.zip
Change constants to UPPERCASE_WITH_UNDERSCORE style
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/home.go4
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
}
}
Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/l10n/.gitkeep
blob: e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 (plain)