private void EvaluateEmergencyAccessClaims() { _canExecuteExerciseEmergencyAccess = AccessControlManager.CanAccess(new ResourceRequest { GetType().FullName }); (ExerciseEmergencyAccessCommand as VirtualDelegateCommand).RaiseCanExecuteChanged(); EmergencyAccessEnabled = _currentUserPermissionService.DoesUserHavePermission(InfrastructurePermission.EmergencyAccessPermission); }
private void CheckRemAccess() { if (AccessControlManager == null && HtmlPage.IsEnabled) { throw new InvalidOperationException("A secure control requires the AccessControlManager properyt to be set."); } if (AccessControlManager != null && !AccessControlManager.CanAccess(_resourceRequest)) { Visibility = Visibility.Collapsed; base.Visibility = Visibility; CanAccess = false; } else if (Visibility == Visibility.Collapsed) { Visibility = Visibility.Visible; base.Visibility = Visibility; CanAccess = true; } }