aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo_collaboration.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo_collaboration.go')
-rw-r--r--models/repo_collaboration.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_collaboration.go b/models/repo_collaboration.go
index 791f022a3f..0448149e6a 100644
--- a/models/repo_collaboration.go
+++ b/models/repo_collaboration.go
@@ -143,7 +143,7 @@ func (repo *Repository) ChangeCollaborationAccessMode(uid int64, mode AccessMode
if _, err = sess.
Id(collaboration.ID).
- AllCols().
+ Cols("mode").
Update(collaboration); err != nil {
return fmt.Errorf("update collaboration: %v", err)
} else if _, err = sess.Exec("UPDATE access SET mode = ? WHERE user_id = ? AND repo_id = ?", mode, uid, repo.ID); err != nil {