From 5b831a0981491cabbbdbb02dba237308947a5e7d Mon Sep 17 00:00:00 2001 From: James Moger Date: Sun, 28 Oct 2012 08:58:39 -0400 Subject: [PATCH] Do not display link for add team in LDAP-managed teams setup (issue 153) --- src/com/gitblit/wicket/panels/TeamsPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/gitblit/wicket/panels/TeamsPanel.java b/src/com/gitblit/wicket/panels/TeamsPanel.java index ae5a30a6..cc37c519 100644 --- a/src/com/gitblit/wicket/panels/TeamsPanel.java +++ b/src/com/gitblit/wicket/panels/TeamsPanel.java @@ -40,7 +40,7 @@ public class TeamsPanel extends BasePanel { Fragment adminLinks = new Fragment("adminPanel", "adminLinks", this); adminLinks.add(new BookmarkablePageLink("newTeam", EditTeamPage.class)); - add(adminLinks.setVisible(showAdmin)); + add(adminLinks.setVisible(showAdmin && GitBlit.self().supportsTeamMembershipChanges())); final List teams = GitBlit.self().getAllTeams(); DataView teamsView = new DataView("teamRow", -- 2.39.5