diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2019-10-08 16:18:17 -0300 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-10-08 15:18:17 -0400 |
commit | 4843723d001a7442db46a205e8a41d38e7e0d7c9 (patch) | |
tree | 90bbf749247cffc513586bf556f5183628a5a165 /routers | |
parent | 736ad8f091696371ac15c9631e0f95b4073b23f5 (diff) | |
download | gitea-4843723d001a7442db46a205e8a41d38e7e0d7c9.tar.gz gitea-4843723d001a7442db46a205e8a41d38e7e0d7c9.zip |
Allow users with explicit read access to give approvals (#8382)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/setting_protected_branch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/setting_protected_branch.go b/routers/repo/setting_protected_branch.go index 80f44ead99..2a8502e6f4 100644 --- a/routers/repo/setting_protected_branch.go +++ b/routers/repo/setting_protected_branch.go @@ -117,9 +117,9 @@ func SettingsProtectedBranch(c *context.Context) { } } - users, err := c.Repo.Repository.GetWriters() + users, err := c.Repo.Repository.GetReaders() if err != nil { - c.ServerError("Repo.Repository.GetWriters", err) + c.ServerError("Repo.Repository.GetReaders", err) return } c.Data["Users"] = users |