From: James Moger Date: Mon, 3 Dec 2012 21:55:19 +0000 (-0500) Subject: Fixed branch view regression (issue-175) X-Git-Tag: v1.2.0~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=58d93319bd870c93d16764b86a4163ac2d1f0561;p=gitblit.git Fixed branch view regression (issue-175) --- diff --git a/src/com/gitblit/models/UserModel.java b/src/com/gitblit/models/UserModel.java index bd40985f..f1bc5efc 100644 --- a/src/com/gitblit/models/UserModel.java +++ b/src/com/gitblit/models/UserModel.java @@ -589,7 +589,7 @@ public class UserModel implements Principal, Serializable, Comparable public boolean hasBranchPermission(String repositoryName, String branch) { // Default UserModel doesn't implement branch-level security. Other Realms (i.e. Gerrit) may override this method. - return hasRepositoryPermission(repositoryName); + return hasRepositoryPermission(repositoryName) || hasTeamRepositoryPermission(repositoryName); } public boolean isMyPersonalRepository(String repository) {