aboutsummaryrefslogtreecommitdiff
path: root/modules/middleware/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r--modules/middleware/context.go33
1 files changed, 17 insertions, 16 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index 8e7ac420..c641449a 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -47,22 +47,23 @@ type Context struct {
csrfToken string
Repo struct {
- IsOwner bool
- IsWatching bool
- IsBranch bool
- IsTag bool
- IsCommit bool
- HasAccess bool
- Repository *models.Repository
- Owner *models.User
- Commit *git.Commit
- Tag *git.Tag
- GitRepo *git.Repository
- BranchName string
- TagName string
- CommitId string
- RepoLink string
- CloneLink struct {
+ IsOwner bool
+ IsTrueOwner bool
+ IsWatching bool
+ IsBranch bool
+ IsTag bool
+ IsCommit bool
+ HasAccess bool
+ Repository *models.Repository
+ Owner *models.User
+ Commit *git.Commit
+ Tag *git.Tag
+ GitRepo *git.Repository
+ BranchName string
+ TagName string
+ CommitId string
+ RepoLink string
+ CloneLink struct {
SSH string
HTTPS string
Git string