public async Task <IEnumerable <StandardArtifactType> > GetStandardArtifactTypes(StandardArtifactTypes filter = StandardArtifactTypes.All) { await _privilegesManager.Demand(Session.UserId, InstanceAdminPrivileges.AccessAllProjectData); if (filter != StandardArtifactTypes.All && filter != StandardArtifactTypes.Regular) { throw new BadRequestException(ErrorMessages.InvalidStandardArtifactTypesFilterValue); } return(await _artifactRepository.GetStandardArtifactTypes(filter)); }