Fix bug that collaborators are able to modify settings of repository

This commit is contained in:
Unknown committed 2014-07-04 01:23:11 -04:00
1 parent 465dc962b5
commit cdffdeddc9
3 files changed
+29 -23

No files matched your search

+17 -16
View File
@@ -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