[PR #196] [MERGED] Fix panic when no user is signed in #15215

Closed
opened 2025-11-02 11:41:31 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/196
Author: @Bwko
Created: 11/19/2016
Status: Merged
Merged: 11/19/2016
Merged by: @andreynering

Base: masterHead: fix/commit-view-panic


📝 Commits (2)

  • fc3ed8a Fix panic when no user is signed in
  • 7b75d93 Fix for anonymous users to switch views

📊 Changes

1 file changed (+9 additions, -3 deletions)

View changed files

📝 routers/repo/middlewares.go (+9 -3)

📄 Description

This commit prevents the execution of SetDiffViewStyle when no user is signed in.
Fixes #188


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/196 **Author:** [@Bwko](https://github.com/Bwko) **Created:** 11/19/2016 **Status:** ✅ Merged **Merged:** 11/19/2016 **Merged by:** [@andreynering](https://github.com/andreynering) **Base:** `master` ← **Head:** `fix/commit-view-panic` --- ### 📝 Commits (2) - [`fc3ed8a`](https://github.com/go-gitea/gitea/commit/fc3ed8a1de0e35eefff083176211c4eb61a264ca) Fix panic when no user is signed in - [`7b75d93`](https://github.com/go-gitea/gitea/commit/7b75d93f3da42a9ea1783b0cb85f88977549cf05) Fix for anonymous users to switch views ### 📊 Changes **1 file changed** (+9 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/middlewares.go` (+9 -3) </details> ### 📄 Description This commit prevents the execution of SetDiffViewStyle when no user is signed in. Fixes #188 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:41:31 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15215