Examples of canAdmin()


Examples of com.gitblit.models.UserModel.canAdmin()

        }
      }
    }

    // add the user's personal project namespace
    if (user.canAdmin() || user.canCreate()) {
      pathNames.add(user.getPersonalPath() + "/");
    }

    if (!StringUtils.isEmpty(repository.name)) {
      // editing a repository name
View Full Code Here

Examples of com.gitblit.models.UserModel.canAdmin()

      pathNames.add(defaultPath);
    }

    // if default project is not already set, set preference based on the user permissions
    if (defaultPath == null) {
      if (user.canAdmin()) {
        defaultPath = "/";
      } else if (user.canCreate()) {
        defaultPath = user.getPersonalPath() + "/";
      }
    }
View Full Code Here

Examples of com.gitblit.models.UserModel.canAdmin()

    }
    assertNull("Server allows anyone to get user!", user);

    user = RpcUtils.getUser("admin", url, "admin", "admin".toCharArray());
    assertEquals("User is not the admin!", "admin", user.username);
    assertTrue("User is not an administrator!", user.canAdmin());
  }

  @Test
  public void testListTeams() throws IOException {
    List<TeamModel> list = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.