Browse Source

Update AppCommandHandler.cs

pull/65/head
Sebastian Stehle 9 years ago
committed by GitHub
parent
commit
deb358a18b
  1. 2
      src/Squidex.Write/Apps/AppCommandHandler.cs

2
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");

Loading…
Cancel
Save