mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-11-02 15:31:03 +00:00
get repo now works somehow
This commit is contained in:
parent
da7a38b03d
commit
fe2a3d86d4
3 changed files with 5 additions and 7 deletions
|
|
@ -20,10 +20,10 @@ func RepositoryIDAssignmentAPI() func(ctx *context.APIContext) {
|
|||
log.Info("RepositoryIDAssignmentAPI: %v", repositoryID)
|
||||
|
||||
//TODO: check auth here ?
|
||||
if !ctx.Repo.HasAccess() && !ctx.IsUserSiteAdmin() {
|
||||
ctx.Error(http.StatusForbidden, "reqAnyRepoReader", "user should have any permission to read repository or permissions of site admin")
|
||||
return
|
||||
}
|
||||
//if !ctx.Repo.HasAccess() && !ctx.IsUserSiteAdmin() {
|
||||
// ctx.Error(http.StatusForbidden, "reqAnyRepoReader", "user should have any permission to read repository or permissions of site admin")
|
||||
// return
|
||||
//}
|
||||
|
||||
var err error
|
||||
repository := new(context.Repository)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue