mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
auth fix
This commit is contained in:
parent
ed9b7d2db9
commit
3cc860a46f
1 changed files with 0 additions and 5 deletions
|
@ -55,11 +55,6 @@ func Issues(ctx *middleware.Context, params martini.Params) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateIssue(ctx *middleware.Context, params martini.Params, form auth.CreateIssueForm) {
|
func CreateIssue(ctx *middleware.Context, params martini.Params, form auth.CreateIssueForm) {
|
||||||
if !ctx.Repo.IsOwner {
|
|
||||||
ctx.Handle(404, "issue.CreateIssue", nil)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
ctx.Data["Title"] = "Create issue"
|
ctx.Data["Title"] = "Create issue"
|
||||||
ctx.Data["IsRepoToolbarIssues"] = true
|
ctx.Data["IsRepoToolbarIssues"] = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue