case 4505
This commit is contained in:
@@ -75,7 +75,7 @@ namespace Sockeye.Api.Controllers
|
||||
}
|
||||
|
||||
//can't do this if there is a purchased license with this dbid already
|
||||
if (await ct.License.Where(z => z.DbId == r.DbId).AnyAsync())
|
||||
if (await ct.License.Where(z => z.DbId == r.DbId && z.TrialMode==false).AnyAsync())
|
||||
{
|
||||
return BadRequest("E1000 - Can't trial; there is already a purchased license issued for this database Id");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user