@Override
	@Transactional
	public void addCommentOn(User user, Long testId, String testComment, String tagString) {
		PerfTest perfTest = getOne(user, testId);
		perfTest.setTestComment(testComment);
		attachTags(user, perfTest, tagString);
		perfTestRepository.save(perfTest);
	}
Check if given user has a permission on perftest.

@param perfTest perf test
@param user     user
@param type     permission type to check
@return true if it has
ngrinder-controller/src/main/java/org/ngrinder/perftest/service/PerfTestService.java