mirror of
https://github.com/go-gitea/gitea
synced 2025-07-19 00:38:36 +00:00
#1040: dashboard no longer accessible when repo is missing
This commit is contained in:
@@ -128,7 +128,7 @@ func runServ(c *cli.Context) {
|
||||
|
||||
repo, err := models.GetRepositoryByName(repoUser.Id, repoName)
|
||||
if err != nil {
|
||||
if err == models.ErrRepoNotExist {
|
||||
if models.IsErrRepoNotExist(err) {
|
||||
if user.Id == repoUser.Id || repoUser.IsOwnedBy(user.Id) {
|
||||
fail("Repository does not exist", "Repository does not exist: %s/%s", repoUser.Name, repoName)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user