Skip to content

Commit

Permalink
Revert "Filter out sub-levels from level results" (#355)
Browse files Browse the repository at this point in the history
#333 broke the ability for level authors to view their own sublevels.

In my opinion, it's better to show them wrongly than to hide them
wrongly, so let's just revert this for now.
  • Loading branch information
jvyden authored Jan 26, 2024
2 parents bfb850f + f392498 commit a44bf98
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Refresh.GameServer/Extensions/LevelEnumerableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ public static IQueryable<GameLevel> FilterByLevelFilterSettings(this IQueryable<
// _ => throw new ArgumentOutOfRangeException()
// };

//Filter out sub-levels, unless the user is the publisher
levels = levels.Where(l => !l.IsSubLevel || l.Publisher == user);

return levels;
}

Expand Down Expand Up @@ -94,9 +91,6 @@ public static IEnumerable<GameLevel> FilterByLevelFilterSettings(this IEnumerabl
// MoveFilterType.False => levels.Where(l => !l.MoveCompatible),
// _ => throw new ArgumentOutOfRangeException()
// };

//Filter out sub-levels, unless the user is the publisher
levels = levels.Where(l => !l.IsSubLevel || l.Publisher == user);

return levels;
}
Expand Down

0 comments on commit a44bf98

Please sign in to comment.