class RepositoryPermissionServiceImpl implements RepositoryPermissionService {

	@Override
	public Optional<AccessLevel> canAdmin(Principal loginUser, Repository project) {
		if (loginUser == null) {
			return Optional.empty();
		}
		
		return hasPermission(loginUser.getName(), project, AccessLevel.ADMIN);
	}

}