]> source.dussan.org Git - gitblit.git/commitdiff
Fixed branch view regression (issue-175)
authorJames Moger <james.moger@gitblit.com>
Mon, 3 Dec 2012 21:55:19 +0000 (16:55 -0500)
committerJames Moger <james.moger@gitblit.com>
Mon, 3 Dec 2012 21:55:19 +0000 (16:55 -0500)
src/com/gitblit/models/UserModel.java

index bd40985f8c7ed9d5574160924cd6804b2f6e819c..f1bc5efc6821403ef023d7d600a2dc744ce8b95f 100644 (file)
@@ -589,7 +589,7 @@ public class UserModel implements Principal, Serializable, Comparable<UserModel>
        \r
        public boolean hasBranchPermission(String repositoryName, String branch) {\r
                // Default UserModel doesn't implement branch-level security. Other Realms (i.e. Gerrit) may override this method.\r
-               return hasRepositoryPermission(repositoryName);\r
+               return hasRepositoryPermission(repositoryName) || hasTeamRepositoryPermission(repositoryName);\r
        }\r
        \r
        public boolean isMyPersonalRepository(String repository) {\r