James Moger
2014-03-05 41aaf7ac59be75e61b32c33c744ab6ba8e1d530d
src/main/java/com/gitblit/models/UserModel.java
@@ -67,6 +67,7 @@
   public boolean canFork;
   public boolean canCreate;
   public boolean excludeFromFederation;
   public boolean disabled;
   // retained for backwards-compatibility with RPC clients
   @Deprecated
   public final Set<String> repositories = new HashSet<String>();
@@ -446,6 +447,18 @@
      return canAdmin() || model.isUsersPersonalRepository(username) || model.isOwner(username);
   }
   public boolean canReviewPatchset(RepositoryModel model) {
      return isAuthenticated && canClone(model);
   }
   public boolean canApprovePatchset(RepositoryModel model) {
      return isAuthenticated && canPush(model);
   }
   public boolean canVetoPatchset(RepositoryModel model) {
      return isAuthenticated && canPush(model);
   }
   /**
    * This returns true if the user has fork privileges or the user has fork
    * privileges because of a team membership.