From 4e3c152fa7e97200855ba0d2716362dbe7976920 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 04 Jan 2013 17:23:23 -0500 Subject: [PATCH] Support local accounts with LdapUserService and RedmineUserService (issue-183) --- src/com/gitblit/Constants.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/com/gitblit/Constants.java b/src/com/gitblit/Constants.java index f2067f6..ca33269 100644 --- a/src/com/gitblit/Constants.java +++ b/src/com/gitblit/Constants.java @@ -405,6 +405,14 @@ return ordinal() <= COOKIE.ordinal(); } } + + public static enum AccountType { + LOCAL, LDAP, REDMINE; + + public boolean isLocal() { + return this == LOCAL; + } + } @Documented @Retention(RetentionPolicy.RUNTIME) -- Gitblit v1.9.1