]> source.dussan.org Git - gitblit.git/commitdiff
Personal repositories must always be owned by the account the repo is stored in
authorJames Moger <james.moger@gitblit.com>
Wed, 31 Oct 2012 20:38:03 +0000 (16:38 -0400)
committerJames Moger <james.moger@gitblit.com>
Wed, 31 Oct 2012 20:38:03 +0000 (16:38 -0400)
src/com/gitblit/wicket/pages/EditRepositoryPage.java

index e9b7d8f79b987653b9a18aa2124b80d5f80ece6b..dead34a91bc64e76eacd02d1297ae7b5521fa110 100644 (file)
@@ -378,7 +378,7 @@ public class EditRepositoryPage extends RootSubPage {
                form.add(new TextField<String>("name").setEnabled(allowEditName));\r
                form.add(new TextField<String>("description"));\r
                form.add(new DropDownChoice<String>("owner", GitBlit.self().getAllUsernames())\r
-                               .setEnabled(GitBlitWebSession.get().canAdmin()));\r
+                               .setEnabled(GitBlitWebSession.get().canAdmin() && !repositoryModel.isPersonalRepository()));\r
                form.add(new CheckBox("allowForks"));\r
                DropDownChoice<AccessRestrictionType> accessRestriction = new DropDownChoice<AccessRestrictionType>("accessRestriction", Arrays\r
                                .asList(AccessRestrictionType.values()), new AccessRestrictionRenderer());\r