forked from forgejo/forgejo
Fix bug that collaborators are able to modify settings of repository
This commit is contained in:
parent
cdffdeddc9
commit
36292060d6
2 changed files with 3 additions and 3 deletions
|
@ -260,7 +260,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
|
|||
}
|
||||
}
|
||||
|
||||
func RequireOwner() martini.Handler {
|
||||
func RequireTrueOwner() martini.Handler {
|
||||
return func(ctx *Context) {
|
||||
if !ctx.Repo.IsTrueOwner {
|
||||
if !ctx.IsSigned {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue