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:
committed by
techknowlogick
parent
b6fba5b459
commit
5bac1a692a
@@ -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
|
||||
|
Reference in New Issue
Block a user