James Moger
2014-03-28 a9dc74e73eea068b8cbb5c96958abccae88b4abc
src/main/java/com/gitblit/models/UserModel.java
@@ -543,7 +543,7 @@
         // admins can create any repository
         return true;
      }
      if (canCreate) {
      if (canCreate()) {
         String projectPath = StringUtils.getFirstPathElement(repository);
         if (!StringUtils.isEmpty(projectPath) && projectPath.equalsIgnoreCase(getPersonalPath())) {
            // personal repository
@@ -552,6 +552,16 @@
      }
      return false;
   }
   /**
    * Returns true if the user is allowed to administer the specified repository
    *
    * @param repo
    * @return true if the user can administer the repository
    */
   public boolean canAdmin(RepositoryModel repo) {
      return canAdmin() || isMyPersonalRepository(repo.name);
   }
   public boolean isAuthenticated() {
      return !UserModel.ANONYMOUS.equals(this) && isAuthenticated;