From 296ace81ee4f6d7d405071a91706511d0aa1bc6d Mon Sep 17 00:00:00 2001
From: mschaefers <mschaefers@scoop-gmbh.de>
Date: Mon, 03 Dec 2012 04:21:35 -0500
Subject: [PATCH] cache results of LDAP user synchronization for a configurable amount of time (realm.ldap.ldapCachePeriod = 2 MINUTES)
---
src/com/gitblit/models/ProjectModel.java | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/com/gitblit/models/ProjectModel.java b/src/com/gitblit/models/ProjectModel.java
index bc35903..189a409 100644
--- a/src/com/gitblit/models/ProjectModel.java
+++ b/src/com/gitblit/models/ProjectModel.java
@@ -53,6 +53,10 @@
this.title = "";
this.description = "";
}
+
+ public boolean isUserProject() {
+ return name.charAt(0) == '~';
+ }
public boolean hasRepository(String name) {
return repositories.contains(name.toLowerCase());
--
Gitblit v1.9.1