Fix minor authentication issue

This commit is contained in:
George Kalampokis 2020-07-31 13:16:29 +03:00
parent f86ba70d24
commit 168b634681
1 changed files with 3 additions and 1 deletions

View File

@ -196,7 +196,9 @@ public class DashBoardManager {
DMPDao dataManagementPlanRepository = databaseRepository.getDmpDao();
DatasetDao datasetRepository = databaseRepository.getDatasetDao();
UserInfo user = new UserInfo();
user.setId(principal.getId());
if (isAuthenticated) {
user.setId(principal.getId());
}
DatasetCriteria datasetCriteria = new DatasetCriteria();
datasetCriteria.setLike(tableRequest.getCriteria().getLike());
datasetCriteria.setAllVersions(false);