In Admin User Edit "May Import Local Repository" always editable #2241

Closed
opened 2025-11-02 04:29:09 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @EnricoFerro on GitHub (Aug 23, 2018).

  • Gitea version (or commit ref): Actual ( Probably from d67b278 )
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

May Import Local Repositry remain editable when setting IMPORT_LOCAL_PATHS is false or missing,
should be disabled like May Create Git Hooks #2450 ( with the setting DISABLE_GIT_HOOKS )

Screenshots

Setting in the screenshot:

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

As is:
image

How should be:
image

Originally created by @EnricoFerro on GitHub (Aug 23, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): Actual ( Probably from d67b278 ) - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description **May Import Local Repositry** remain editable when setting IMPORT_LOCAL_PATHS is false or missing, should be disabled like **May Create Git Hooks** #2450 ( with the setting DISABLE_GIT_HOOKS ) ## Screenshots Setting in the screenshot: ``` [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) How should be: ![image](https://user-images.githubusercontent.com/25525316/44554045-c4b07400-a72f-11e8-8a76-86c4af0e64fb.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the topic/ui label 2025-11-02 04:29:09 -06:00
Author
Owner

@techknowlogick commented on GitHub (Aug 23, 2018):

Link ticket #4482

@techknowlogick commented on GitHub (Aug 23, 2018): Link ticket #4482
Author
Owner

@EnricoFerro commented on GitHub (Aug 24, 2018):

Merged #4780 that resolve this issue

@EnricoFerro commented on GitHub (Aug 24, 2018): Merged #4780 that resolve this issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2241