Skip to content

Commit cac69d3

Browse files
committed
Revert "Only show function name for admin"
This reverts commit a109192.
1 parent a2e2705 commit cac69d3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

routers/web/repo/commit.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ func Commits(ctx *context.Context) {
9090
commitsTagsMap, err := repo_model.FindTagsByCommitIDs(ctx, ctx.Repo.Repository.ID, commitIDs...)
9191
if err != nil {
9292
log.Error("FindTagsByCommitIDs: %v", err)
93-
if ctx.IsSigned && ctx.Doer.IsAdmin {
94-
ctx.Flash.Error(ctx.Tr("internal_error_skipped", "FindTagsByCommitIDs"))
95-
} else {
96-
ctx.Flash.Error(ctx.Tr("internal_error_skipped", "Load Tags"))
97-
}
93+
ctx.Flash.Error(ctx.Tr("internal_error_skipped", "FindTagsByCommitIDs"))
9894
} else {
9995
ctx.Data["CommitsTagsMap"] = commitsTagsMap
10096
}

0 commit comments

Comments
 (0)