Use the `can?` helper instead of `current_user.can?` Fixes #15513. See merge request !3882
can?
current_user.can?