Use Ability#allowed? to check provider allowance in auth helper
What does this MR do and why?
Don't use policy class directly as it exposes too much of internals and is prone to failure if we decide to rename policy classes, for example.
Extracted from !94135 (merged).
How to set up and validate locally
bin/rspec spec/helpers/auth_helper_spec.rb -e link
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 Peter Leitzen