mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-16 12:05:30 +09:00
Add option to app.ini to enable local import paths (#724)
This commit is contained in:
1 parent
1257d43e14
commit
74ed6dc3ad
6 files changed
+14
-5
No files matched your search
@@ -233,6 +233,9 @@ func (u *User) CanEditGitHook() bool {
|
||||
|
||||
// CanImportLocal returns true if user can migrate repository by local path.
|
||||
func (u *User) CanImportLocal() bool {
|
||||
if !setting.ImportLocalPaths {
|
||||
return false
|
||||
}
|
||||
return u.IsAdmin || u.AllowImportLocal
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user