]> source.dussan.org Git - gitblit.git/commit
allow advertising gitblit privileges for external URLs 281/head
authorJoel Johnson <mrjoel@lixil.net>
Mon, 29 Jun 2015 23:13:19 +0000 (17:13 -0600)
committerJoel Johnson <mrjoel@lixil.net>
Wed, 1 Jul 2015 19:05:50 +0000 (13:05 -0600)
commit1590fd791c7fc4d6849479cad88956f37360bbbf
treed2f524497419f6aaec22b8a91c0cdcba2c4c0580
parent124fd6e639b0bc43f3714134d6dead77895fd490
allow advertising gitblit privileges for external URLs

commit c20191fc0931a19bec0df1ab2b56f287e5d8b7c7 enabled support
for hiding internal URLs, but didn't consider that it broke the
evaluation of permissions (used for tickets, etc.), and caused
a NPE on repoUrl.permission when trying to view the TicketPage.

With all internal mechanisms disabled, it would result in the
first URL being external with unknown permissions. This adds an
option to use internal permissions even for external URLs.

Note that this does not grant any additional permissions, but
does offer the option to have gitblit advertise the full set of
what is allowed, even if the external URL imposes additional
restrictions.
src/main/distrib/data/defaults.properties
src/main/java/com/gitblit/manager/ServicesManager.java
src/main/java/com/gitblit/models/RepositoryUrl.java
src/main/java/com/gitblit/wicket/pages/TicketPage.java
src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java