Skip to content

Commit

Permalink
Merge pull request #34 from dimmik/tour-number-limitation
Browse files Browse the repository at this point in the history
wording
  • Loading branch information
dimmik authored Oct 22, 2019
2 parents 7b536e1 + 0104c7d commit 62f69ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TourCalcWebApp/Controllers/TourController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public string AddTour([FromBody]Tour tourJson, string accessCode)
bool noTours = !tours.Any();
bool maxToursReached = !(maxCountOfToursPerCode == -1 || tours.Count() < maxCountOfToursPerCode);
allowed = !noTours && !maxToursReached;
if (maxToursReached) forbidMessage = $"You can create up to {maxCountOfToursPerCode} tours per code. To add more you should be admin";
if (maxToursReached) forbidMessage = $"You can create up to {maxCountOfToursPerCode} tours per code. To add more please ask administrator";
}
if (!allowed)
{
Expand Down

0 comments on commit 62f69ff

Please sign in to comment.