From 4e87e62d5ce9ff7fb189d895c0e2b20b8b322ad8 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 29 May 2017 16:33:18 -0400 Subject: [PATCH] models/repo_collaboration: cannot change permissions of collaborators (#4512) --- gogs.go | 2 +- models/repo_collaboration.go | 2 +- templates/.VERSION | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gogs.go b/gogs.go index 23a96910a..2252f6e18 100644 --- a/gogs.go +++ b/gogs.go @@ -16,7 +16,7 @@ import ( "github.com/gogits/gogs/pkg/setting" ) -const APP_VER = "0.11.11.0521" +const APP_VER = "0.11.12.0529" func init() { setting.AppVer = APP_VER diff --git a/models/repo_collaboration.go b/models/repo_collaboration.go index c3135013b..0b7332724 100644 --- a/models/repo_collaboration.go +++ b/models/repo_collaboration.go @@ -174,7 +174,7 @@ func (repo *Repository) ChangeCollaborationAccessMode(userID int64, mode AccessM return fmt.Errorf("update collaboration: %v", err) } - access := Access{ + access := &Access{ UserID: userID, RepoID: repo.ID, } diff --git a/templates/.VERSION b/templates/.VERSION index 90070c3bb..0d9bfcbc0 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.11.11.0521 \ No newline at end of file +0.11.12.0529 \ No newline at end of file