Skip to content

Commit

Permalink
Fixing IOD workflow switch for non-standalone environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus-Goectau committed Sep 20, 2023
1 parent 080c98b commit 210ffe7
Show file tree
Hide file tree
Showing 3 changed files with 360 additions and 330 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
using CSETWebCore.DataLayer.Model;
using CSETWebCore.Model.Module;
using CSETWebCore.Interfaces.Helpers;
using CSETWebCore.Helpers;
using Namotion.Reflection;
using Microsoft.AspNetCore.Authorization;

namespace CSETWebCore.Api.Controllers
{
Expand Down Expand Up @@ -116,16 +115,18 @@ public IActionResult SetCisaAssessorWorkflow([FromBody] bool cisaWorkflowEnabled
}

[HttpGet]
[AllowAnonymous]
[Route("api/EnableProtectedFeature/getCisaAssessorWorkflow")]
/// <summary>
/// Marks the FAA set as 'unlocked.'
/// Gets the status of the CISA assessor workflow for the current user.
/// </summary>
/// <returns></returns>
public IActionResult GetCisaAssessorWorkflow()
{
var userId = _tokenManager.GetCurrentUserId();
var ak = _tokenManager.GetAccessKey();

// Assume false if we can't find the user or access key (they are probably on the login page).
bool cisaWorkflowEnabled = false;

if (userId != null)
Expand Down
Loading

0 comments on commit 210ffe7

Please sign in to comment.