Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
fix workspace permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jmattson committed Jun 16, 2020
1 parent add4d31 commit 14e9868
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/TopoMojo.Core/Data/Stores/WorkspaceStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ public async Task<Workspace> LoadWithGamespaces(int id)
{
return await base.Load(id, query => query
.Include(t => t.Gamespaces)
.Include(t => t.Workers)
);
}

public async Task<Workspace> LoadWithParents(int id)
{
return await base.Load(id, query => query
.Include(t => t.Workers)
.Include(t => t.Templates)
.ThenInclude(o => o.Parent)
);
Expand Down
6 changes: 3 additions & 3 deletions src/TopoMojo.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ public void Configure(IApplicationBuilder app)
{
app.UseJsonExceptions();

if (!string.IsNullOrEmpty(Headers.Forwarding.TargetHeaders))
app.UseForwardedHeaders();

if (Headers.LogHeaders)
app.UseHeaderInspection();

if (!string.IsNullOrEmpty(Headers.Forwarding.TargetHeaders))
app.UseForwardedHeaders();

if (Headers.UseHsts)
app.UseHsts();

Expand Down

0 comments on commit 14e9868

Please sign in to comment.