MCPcopy Create free account
hub / github.com/gogs/gogs / CanImportLocal

Method CanImportLocal

internal/database/users.go:1336–1338  ·  view source on GitHub ↗

CanImportLocal returns true if user can migrate repositories by local path.

()

Source from the content-addressed store, hash-verified

1334
1335// CanImportLocal returns true if user can migrate repositories by local path.
1336func (u *User) CanImportLocal() bool {
1337 return conf.Repository.EnableLocalPathMigration && (u.IsAdmin || u.AllowImportLocal)
1338}
1339
1340// DisplayName returns the full name of the user if it's not empty, returns the
1341// username otherwise.

Callers 1

ParseRemoteAddrFunction · 0.80

Implementers 1

mailerUserinternal/database/issue_mail.go

Calls

no outgoing calls

Tested by

no test coverage detected