lprimak commented on issue #2405:
URL: https://github.com/apache/shiro/issues/2405#issuecomment-3613152025

   Also, have you tried just doing something like this:
   
   ```
   var securityManager = SecurityUtils.getSecurityManager();
   Runnable task = () -> {
     try {
       ThreadContext.bind(securityManager);
       // my code with access control check based on principal
     } finally {
       ThreadContext.remove();
     }
   };
   ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to