Skip to content
Snippets Groups Projects

Product/1414 fh privileges

Merged L. Ellenbeck requested to merge Product/1414-fhPrivileges into Sprint/2021-08
3 files
+ 39
10
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -60,7 +60,7 @@ namespace Coscine.Api.STS.Controllers
var mapping = externalIdModel.GetAllWhere((map) => map.ExternalId1 == ORCiD && map.ExternalAuthenticatorId == orcidAuthItem.Id);
var userModel = new UserModel();
User user;
if (mapping.Count() > 0)
if (mapping.Any())
{
var userId = mapping.First().UserId;
user = userModel.GetById(userId);
Loading