Mrbytes
2012-12-19 e56a821d5ec9a2606f44f72dd24b7bf2f00e714d
src/com/gitblit/wicket/pages/RepositoryPage.java
@@ -112,7 +112,7 @@
               // workaround until get().getUser() is reviewed throughout the app
               user = UserModel.ANONYMOUS;
            }
            boolean canAccess = user.hasBranchPermission(repositoryName,
            boolean canAccess = user.canView(getRepositoryModel(),
                        branch.reference.getName());
            if (!canAccess) {
               error(getString("gb.accessDenied"), true);
@@ -450,6 +450,8 @@
         Constants.SearchType searchType) {
      String name = identity == null ? "" : identity.getName();
      String address = identity == null ? "" : identity.getEmailAddress();
      name = StringUtils.removeNewlines(name);
      address = StringUtils.removeNewlines(address);
      boolean showEmail = GitBlit.getBoolean(Keys.web.showEmailAddresses, false);
      if (!showEmail || StringUtils.isEmpty(name) || StringUtils.isEmpty(address)) {
         String value = name;