Check if the request responds to `current_user`
What does this MR do and why?
request
object can be either nil
or an instance of EntityRequest
. If the former then it does not respond to current_user
and if the latter it may or may not respond to current_user
therefore we need to check if the object responds to current_user
or not.
Related to !106992 (merged).
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Mehmet Emin INAC