summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-11-07 17:30:04 +0100
committerSandro Santilli <strk@kbt.io>2016-11-07 17:30:04 +0100
commit60c82a87805821ad6eaf5aeb58a3a266b56a30ff (patch)
treeddc3675e4133284dbe7fa1b2bbd10ed7d38ff6fc /models/user.go
parentf6a11e0de1ab950b42679d6be9dc0f3ac86c3399 (diff)
downloadgitea-60c82a87805821ad6eaf5aeb58a3a266b56a30ff.tar.gz
gitea-60c82a87805821ad6eaf5aeb58a3a266b56a30ff.zip
More...
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user.go b/models/user.go
index dcb2311cf6..ba41a392cb 100644
--- a/models/user.go
+++ b/models/user.go
@@ -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.