From deb358a18b89f353505eaf1b7a94e26e4584f381 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Wed, 17 May 2017 10:16:03 +0200 Subject: [PATCH] Update AppCommandHandler.cs --- src/Squidex.Write/Apps/AppCommandHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Squidex.Write/Apps/AppCommandHandler.cs b/src/Squidex.Write/Apps/AppCommandHandler.cs index b8befd932..d6ea0c2aa 100644 --- a/src/Squidex.Write/Apps/AppCommandHandler.cs +++ b/src/Squidex.Write/Apps/AppCommandHandler.cs @@ -85,7 +85,7 @@ namespace Squidex.Write.Apps a.AssignContributor(command); - if (a.ContributorCount > oldContributors && a.ContributorCount > maxContributors) + if (maxContributors > 0 && a.ContributorCount > oldContributors && a.ContributorCount > maxContributors) { var error = new ValidationError("You have reached your max number of contributors");