예제 #1
0
        public List <KeyValuePair <ModuleType, string> > GetDeletable()
        {
            // Get the Identity Context
            var identity = _userQueryService.GetIdentityContext();

            // Relevant Module Types
            var dataEntryModules = ModuleTypeInfo.ReportModules;

            // return modules where we have the delete right in at least one agency.
            return(dataEntryModules
                   .Where(identity.Permissions.DataEntryDeleteGranted)
                   .Select(t => new KeyValuePair <ModuleType, string>(t, t.GetDescription()))
                   .ToList());
        }
예제 #2
0
 public IdentityContext GetIdentityContext()
 {
     return(_userQrySvc.GetIdentityContext());
 }
예제 #3
0
        public void LogPolicyViolation()
        {
            var identity = _userQrySvc.GetIdentityContext();

            Audit.Add(new AuditEntry(identity.IdentityId, identity.GivenName, AuditCategory.Administration, PasswordAudit.UnsuccessfulPasswordChangeAuditFormat));
        }