From 9910e56056d2f2639d2783257ae9f1bf46aaee58 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Wed, 02 Jan 2013 16:35:16 -0500
Subject: [PATCH] Fixed fork origin determination if !git.cacheRepositoryList (issue-182)

---
 src/com/gitblit/wicket/pages/ForkPage.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/com/gitblit/wicket/pages/ForkPage.java b/src/com/gitblit/wicket/pages/ForkPage.java
index 082dab5..340bd82 100644
--- a/src/com/gitblit/wicket/pages/ForkPage.java
+++ b/src/com/gitblit/wicket/pages/ForkPage.java
@@ -40,7 +40,7 @@
 
 		RepositoryModel repository = getRepositoryModel();
 		UserModel user = session.getUser();
-		boolean canFork = user.canForkRepository(repository);
+		boolean canFork = user.canFork(repository);
 
 		if (!canFork) {
 			// redirect to the summary page if this repository is not empty

--
Gitblit v1.9.1