[PR #4780] [MERGED] Disable 'May Import Local Repository' when is disabled by setting (Is… #17494

Closed
opened 2025-11-02 13:39:45 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4780
Author: @EnricoFerro
Created: 8/23/2018
Status: Merged
Merged: 8/24/2018
Merged by: @techknowlogick

Base: masterHead: fixIssue4779


📝 Commits (2)

  • b2795dd Disable 'May Import Local Repository' when is disabled by setting (Issue #4779)
  • d4dc5e0 Merge branch 'master' into fixIssue4779

📊 Changes

2 files changed (+4 additions, -1 deletions)

View changed files

📝 modules/templates/helper.go (+3 -0)
📝 templates/admin/user/edit.tmpl (+1 -1)

📄 Description

Modify the layout of /admin/users/{user} when the setting IMPORT_LOCAL_PATHS is missing or equal a false (Issue #4779):

Setting:

[security]
...
IMPORT_LOCAL_PATHS = false
DISABLE_GIT_HOOKS = true 

As is:
image

To be:
image


🔄 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/4780 **Author:** [@EnricoFerro](https://github.com/EnricoFerro) **Created:** 8/23/2018 **Status:** ✅ Merged **Merged:** 8/24/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `fixIssue4779` --- ### 📝 Commits (2) - [`b2795dd`](https://github.com/go-gitea/gitea/commit/b2795dd23832034128d4f72c57f7fd6c42a5e2ab) Disable 'May Import Local Repository' when is disabled by setting (Issue #4779) - [`d4dc5e0`](https://github.com/go-gitea/gitea/commit/d4dc5e025f6d8f03c5ebee3ac47ed1fb35840ede) Merge branch 'master' into fixIssue4779 ### 📊 Changes **2 files changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `modules/templates/helper.go` (+3 -0) 📝 `templates/admin/user/edit.tmpl` (+1 -1) </details> ### 📄 Description Modify the layout of /admin/users/{user} when the setting IMPORT_LOCAL_PATHS is missing or equal a false (Issue #4779): Setting: ``` [security] ... IMPORT_LOCAL_PATHS = false DISABLE_GIT_HOOKS = true ``` As is: ![image](https://user-images.githubusercontent.com/25525316/44553918-6b484500-a72f-11e8-8602-86a4b991d7ad.png) To be: ![image](https://user-images.githubusercontent.com/25525316/44554045-c4b07400-a72f-11e8-8a76-86c4af0e64fb.png) --- <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 13:39:45 -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#17494