This commit is contained in:
2020-03-16 22:25:27 +00:00
parent 85ddf8bd7b
commit a5e805c858
3 changed files with 39 additions and 24 deletions

View File

@@ -76,27 +76,7 @@ namespace AyaNova.Api.Controllers
if (!ModelState.IsValid)
return BadRequest(new ApiErrorResponse(ModelState));
//Here need to handle scenario of badly formed query so user knows they did it wrong and doesn't just assume it's not there
/*
string TagSpecificQuery=string.Empty;
//determine if this is a tag query
if(HasAutoCompleteQuery){
if(autoCompleteQuery.Contains(" ")){
//split the query on space
var querySegments=autoCompleteQuery.Split(' ');
//users may type several spaces in a regular query, so ignore that and only use the first two segments
if(querySegments[0].Contains("..")){
TagSpecificQuery=querySegments[0].Replace("..","");
//the second string is considered the
autoCompleteQuery=querySegments[1];
}else{
}
}
}
*/
var UserRoles = UserRolesFromContext.Roles(HttpContext.Items);