diff options
author | Unknown <joe2010xtmf@163.com> | 2014-07-04 01:23:11 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-07-04 01:23:11 -0400 |
commit | cdffdeddc90a69e88fab92487ff5ccf90eb47c08 (patch) | |
tree | 13669ab33280da25770d648c3775ae74fe8bcf58 /modules/middleware/context.go | |
parent | 465dc962b5e1febdfc988419d4d03e98f777019f (diff) |
Fix bug that collaborators are able to modify settings of repository
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r-- | modules/middleware/context.go | 33 |
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 |