From 2ea85bfe371215ef21fcd528bc40fa57c48ee698 Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 31 Oct 2012 16:38:03 -0400 Subject: [PATCH] Personal repositories must always be owned by the account the repo is stored in --- src/com/gitblit/wicket/pages/EditRepositoryPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/gitblit/wicket/pages/EditRepositoryPage.java b/src/com/gitblit/wicket/pages/EditRepositoryPage.java index e9b7d8f7..dead34a9 100644 --- a/src/com/gitblit/wicket/pages/EditRepositoryPage.java +++ b/src/com/gitblit/wicket/pages/EditRepositoryPage.java @@ -378,7 +378,7 @@ public class EditRepositoryPage extends RootSubPage { form.add(new TextField("name").setEnabled(allowEditName)); form.add(new TextField("description")); form.add(new DropDownChoice("owner", GitBlit.self().getAllUsernames()) - .setEnabled(GitBlitWebSession.get().canAdmin())); + .setEnabled(GitBlitWebSession.get().canAdmin() && !repositoryModel.isPersonalRepository())); form.add(new CheckBox("allowForks")); DropDownChoice accessRestriction = new DropDownChoice("accessRestriction", Arrays .asList(AccessRestrictionType.values()), new AccessRestrictionRenderer()); -- 2.39.5