From 4e6399e28512d5efbc29dd24f68b312fa5864c6b Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sun, 21 Jan 2024 00:32:04 +0100 Subject: [PATCH] Allow private submissions to bypass submission limit --- DeckPersonalisationApi/Controllers/SubmissionController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DeckPersonalisationApi/Controllers/SubmissionController.cs b/DeckPersonalisationApi/Controllers/SubmissionController.cs index 4df9195..0a34d9b 100644 --- a/DeckPersonalisationApi/Controllers/SubmissionController.cs +++ b/DeckPersonalisationApi/Controllers/SubmissionController.cs @@ -195,7 +195,9 @@ public IActionResult DenyThemeSubmission(string id, MessageDto messageDto) private void ValidateMeta(User user, SubmissionMeta meta, ThemeType type) { - CheckIfUserIsAllowedToMakeSubmission(user); + if (!meta.PrivateSubmission) + CheckIfUserIsAllowedToMakeSubmission(user); + CheckImageBlobs(user, meta.ImageBlobs); ValidateMetaDescription(meta.Description);