mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Fix protected beatmap sets getting deleted
This commit is contained in:
parent
0aff1c232b
commit
157dfdaa82
@ -239,7 +239,7 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
using (var context = contextFactory.CreateContext())
|
||||
{
|
||||
var items = context.All<BeatmapSetInfo>().Where(s => !s.DeletePending);
|
||||
var items = context.All<BeatmapSetInfo>().Where(s => !s.DeletePending && !s.Protected);
|
||||
|
||||
if (filter != null)
|
||||
items = items.Where(filter);
|
||||
|
Loading…
Reference in New Issue
Block a user