mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Add option to app.ini to enable local import paths (#724)
This commit is contained in:
		@@ -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