Skip to content

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

Closed
@EnricoFerro

Description

@EnricoFerro
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UI

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions