Allow users with explicit read access to give approvals (#8382)
This commit is contained in:
parent
736ad8f091
commit
4843723d00
3 changed files with 37 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue