From: James Moger Date: Wed, 31 Oct 2012 20:38:03 +0000 (-0400) Subject: Personal repositories must always be owned by the account the repo is stored in X-Git-Tag: v1.2.0~110 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2ea85bfe371215ef21fcd528bc40fa57c48ee698;p=gitblit.git Personal repositories must always be owned by the account the repo is stored in --- 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());