Skip to content

Use Ability#allowed? to check provider allowance in auth helper

Peter Leitzen requested to merge pl-auth-helper-policy into master

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.

Edited by Peter Leitzen

Merge request reports