()
| 433 | } |
| 434 | |
| 435 | func RequireRepoAdmin() macaron.Handler { |
| 436 | return func(c *Context) { |
| 437 | if !c.IsLogged || (!c.Repo.IsAdmin() && !c.User.IsAdmin) { |
| 438 | c.NotFound() |
| 439 | return |
| 440 | } |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | func RequireRepoWriter() macaron.Handler { |
| 445 | return func(c *Context) { |