-
API: Memoize the current_user so that the sudo can work properly · 2f45d3bcRémy Coutable authored
The issue was arising when `#current_user` was called a second time after a user was impersonated: the `User#is_admin?` check would be performed on it and it would fail. Signed-off-by: Rémy Coutable <remy@rymai.me>
2f45d3bc
×