mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-03 09:52:26 +02:00
More...
This commit is contained in:
parent
f6a11e0de1
commit
60c82a8780
9 changed files with 47 additions and 47 deletions
|
@ -140,9 +140,9 @@ func (u *User) APIFormat() *api.User {
|
|||
}
|
||||
}
|
||||
|
||||
// returns true if user login type is LOGIN_PLAIN.
|
||||
// returns true if user login type is LoginPlain.
|
||||
func (u *User) IsLocal() bool {
|
||||
return u.LoginType <= LOGIN_PLAIN
|
||||
return u.LoginType <= LoginPlain
|
||||
}
|
||||
|
||||
// HasForkedRepo checks if user has already forked a repository with given ID.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue