Skip to content

Commit

Permalink
Fix/brokenthing (#899)
Browse files Browse the repository at this point in the history
fix: stash
  • Loading branch information
jaybeeelsdon authored Dec 13, 2024
1 parent c6131b1 commit 1629676
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Data-Egress-API/Controllers/DataEgressController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ public class DataEgressController : ControllerBase


public DataEgressController(ApplicationDbContext repository, ITreClientWithoutTokenHelper treClientHelper,
IMinioHelper minioHelper, IDareEmailService iDareEmailService, EmailSettings emailSettings)
IMinioHelper minioHelper, IDareEmailService iDareEmailService, EmailSettings emailSettings, IKeyCloakService keyCloakService)
{
_DbContext = repository;
_minioHelper = minioHelper;
_treClientHelper = treClientHelper;
_IDareEmailService = iDareEmailService;
_EmailSettings = emailSettings;
_IKeyCloakService = keyCloakService;
}

[Authorize(Roles = "data-egress-admin,dare-tre-admin")]
Expand All @@ -70,6 +71,7 @@ public async Task<BoolReturn> AddNewDataEgress(EgressSubmission submission)
await _DbContext.SaveChangesAsync();
try
{

var Emails = await _IKeyCloakService.GetEmailsOfAccountWithRole("data-egress-admin");

if (string.IsNullOrEmpty(_EmailSettings.EmailOverride) == false)
Expand Down
2 changes: 1 addition & 1 deletion src/TRE-API/Controllers/TRECredentialsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class TRECredentialsController : Controller
private readonly ApplicationDbContext _DbContext;
private readonly IEncDecHelper _encDecHelper;
private readonly KeycloakTokenHelper _keycloakTokenHelper;
public TRECredentialsController(ApplicationDbContext applicationDbContext, IEncDecHelper encDec, SubmissionKeyCloakSettings keycloakSettings)
public TRECredentialsController(ApplicationDbContext applicationDbContext, IEncDecHelper encDec, TreKeyCloakSettings keycloakSettings)
{
_encDecHelper = encDec;
_DbContext = applicationDbContext;
Expand Down

0 comments on commit 1629676

Please sign in to comment.