CanImportLocal returns true if user can migrate repositories by local path.
()
| 1334 | |
| 1335 | // CanImportLocal returns true if user can migrate repositories by local path. |
| 1336 | func (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. |
no outgoing calls
no test coverage detected