Background Job and CurrentUser #23432
              
                Unanswered
              
          
                  
                    
                      drewwilliams1982
                    
                  
                
                  asked this question in
                General
              
            Replies: 1 comment
-
| hi You just need to disable the filter when you can't get the CurrentUser. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I have added a EF Global Filter that filters specific entities based on the users Organisation Unit. It uses CurrentUser to grab the users email to filter with.
Background Jobs have no user, so I need to change the filters behaviour for when a background job is running, or disable it completely.
Is there something in the ABP framework that I can inject into any service to know that it is a background job currently executing?
Beta Was this translation helpful? Give feedback.
All reactions