I override some community controllers and need to check if user is logged or not. But controller action getUser throw an 403 Exception if no user is logged.
Expected Behavior
Method getUser should not throw an Exception.
Possible Solutions
If no user is logged, method getUser should return null and exception should be thrown in calling method.
Actual Behavior
I override some community controllers and need to check if user is logged or not. But controller action getUser throw an 403 Exception if no user is logged.
Expected Behavior
Method getUser should not throw an Exception.
Possible Solutions
If no user is logged, method getUser should return null and exception should be thrown in calling method.