Skip to content

Commit

Permalink
Fix bug in 7.13.0 where anonymous statlessapps does not allow anonymo…
Browse files Browse the repository at this point in the history
…us users even if configured (#283)
  • Loading branch information
tjololo authored Aug 8, 2023
1 parent 7c0e8a1 commit 37be204
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Altinn.App.Api/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private async Task<bool> ShouldShowAppView()
return true;
}

Application application = await _appMetadata.GetApplicationMetadata();
ApplicationMetadata application = await _appMetadata.GetApplicationMetadata();
if (!IsStatelessApp(application))
{
return false;
Expand All @@ -121,7 +121,7 @@ private async Task<bool> ShouldShowAppView()
return false;
}

private bool IsStatelessApp(Application application)
private bool IsStatelessApp(ApplicationMetadata application)
{
if (application?.OnEntry == null)
{
Expand All @@ -131,7 +131,7 @@ private bool IsStatelessApp(Application application)
return !_onEntryWithInstance.Contains(application.OnEntry.Show);
}

private DataType? GetStatelessDataType(Application application)
private DataType? GetStatelessDataType(ApplicationMetadata application)
{
string layoutSetsString = _appResources.GetLayoutSets();
JsonSerializerOptions options = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase };
Expand Down

0 comments on commit 37be204

Please sign in to comment.