1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-10 11:38:20 +00:00

Allow users with explicit read access to give approvals (#8398)

This commit is contained in:
guillep2k
2019-10-06 17:52:25 -03:00
committed by techknowlogick
parent b6fba5b459
commit 5bac1a692a
3 changed files with 37 additions and 3 deletions

View File

@@ -116,9 +116,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