diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2016-12-05 18:48:51 -0500 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-07 12:55:24 +0100 |
commit | 04b9a7e7a22d968790aeee9c316391252b0aaf67 (patch) | |
tree | eb7af4ff5dbe06439511779331aac0b2de3a8c04 /models/action.go | |
parent | 08b9af9ad8861352d1b68d15b33ef265352a2f4a (diff) | |
download | gitea-04b9a7e7a22d968790aeee9c316391252b0aaf67.tar.gz gitea-04b9a7e7a22d968790aeee9c316391252b0aaf67.zip |
Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go index e2ac1756ab..9c79dc5df0 100644 --- a/models/action.go +++ b/models/action.go @@ -539,7 +539,7 @@ func CommitRepoAction(opts CommitRepoActionOptions) error { }() apiPusher := pusher.APIFormat() - apiRepo := repo.APIFormat(nil) + apiRepo := repo.APIFormat(AccessModeNone) var shaSum string switch opType { |