fixes the circle creation

This commit is contained in:
Paul Schneider 2015-06-14 23:47:34 +02:00
commit 597b674b74
7 changed files with 2 additions and 46 deletions

View file

@ -15,7 +15,7 @@ namespace Yavsc.ApiControllers
/// Maintains a collection of articles
/// qualified with name value pairs
/// </summary>
public class BasketApiController : ApiController
public class BasketController : ApiController
{
/// <summary>
/// The wfmgr.

View file

@ -184,7 +184,7 @@ namespace Yavsc.ApiControllers
if (model.IsApprouved)
if (!Roles.IsUserInRole ("Admin"))
if (!Roles.IsUserInRole ("FrontOffice")) {
ModelState.AddModelError ("IsApprouved",
ModelState.AddModelError ("Register",
"Since you're not member of Admin or FrontOffice groups, " +
"you cannot ask for a pre-approuved registration");
return DefaultResponse ();