This commit is contained in:
@@ -63,6 +63,13 @@ namespace rockfishCore.Controllers
|
||||
return BadRequest("E1000 - Can't trial; there is already a purchased license issued for this database Id");
|
||||
}
|
||||
|
||||
//can't do this if there is a trial request already pending
|
||||
if (await ct.TrialRequest.Where(z => z.DbId == r.DbId && z.DtProcessed == null).AnyAsync())
|
||||
{
|
||||
return Ok("Request awaiting approval");
|
||||
}
|
||||
|
||||
|
||||
System.Diagnostics.Debug.WriteLine("RvRController:Post - TODO: Test MustBeOlderThan date code");
|
||||
|
||||
//if there is an active trial for this db then can't do this they must request we re-release it or completely zap the database instead
|
||||
|
||||
Reference in New Issue
Block a user