Skip to content

Commit

Permalink
Allow private submissions to bypass submission limit
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Jan 20, 2024
1 parent 2d25431 commit 4e6399e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DeckPersonalisationApi/Controllers/SubmissionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4e6399e

Please sign in to comment.