mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-18 00:01:32 -04:00
Compare commits
2 Commits
73189f0a19
...
48450939c7
Author | SHA1 | Date | |
---|---|---|---|
|
48450939c7 | ||
|
7dcf9dd4d8 |
@ -488,6 +488,11 @@ func EditPullRequest(ctx *context.APIContext) {
|
|||||||
issue := pr.Issue
|
issue := pr.Issue
|
||||||
issue.Repo = ctx.Repo.Repository
|
issue.Repo = ctx.Repo.Repository
|
||||||
|
|
||||||
|
if err := issue.LoadAttributes(ctx); err != nil {
|
||||||
|
ctx.Error(http.StatusInternalServerError, "LoadAttributes", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if !issue.IsPoster(ctx.Doer.ID) && !ctx.Repo.CanWrite(unit.TypePullRequests) {
|
if !issue.IsPoster(ctx.Doer.ID) && !ctx.Repo.CanWrite(unit.TypePullRequests) {
|
||||||
ctx.Status(http.StatusForbidden)
|
ctx.Status(http.StatusForbidden)
|
||||||
return
|
return
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{if .PackageDescriptor.Metadata.ImageLayers}}
|
{{if .PackageDescriptor.Metadata.ImageLayers}}
|
||||||
<h4 class="ui top attached header">{{.i18n.Tr "packages.container.layers"}}</h4>
|
<h4 class="ui top attached header">{{.i18n.Tr "packages.container.layers"}}</h4>
|
||||||
<div class="ui attached segment">
|
<div class="ui attached segment word-break">
|
||||||
<table class="ui very basic compact table">
|
<table class="ui very basic compact table">
|
||||||
<tbody>
|
<tbody>
|
||||||
{{range .PackageDescriptor.Metadata.ImageLayers}}
|
{{range .PackageDescriptor.Metadata.ImageLayers}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user