Finished implimenting Identity with IdentityServer4. #865 #1456

This commit is contained in:
Jamie.Rees 2017-07-13 15:23:39 +01:00
parent b04344dd17
commit 51fbd56c44
26 changed files with 631 additions and 204 deletions

View file

@ -21,7 +21,7 @@ namespace Ombi.Core.Rule.Rules.Specific
var req = (BaseRequest)obj;
var sendNotification = !req.Approved; /*|| !prSettings.IgnoreNotifyForAutoApprovedRequests;*/
if (User.IsInRole(OmbiClaims.Admin))
if (User.IsInRole(OmbiRoles.Admin))
sendNotification = false; // Don't bother sending a notification if the user is an admin
return Task.FromResult(new RuleResult
{